""" Stuff that doesn't fit anywhere else. """ from sage.all import * def legend_latex(obj): """ Return the LaTeX representation of ``obj``, but wrap it in dollar ($) signs so that we can pass it directly to plot() et al. as a legend label. """ return '$%s$' % latex(obj)