]> gitweb.michael.orlitzky.com - sage.d.git/blob - mjo/misc.py
eja: use from_vector() instead of relying on call magic in one spot.
[sage.d.git] / mjo / misc.py
1 """
2 Stuff that doesn't fit anywhere else.
3 """
4
5 from sage.all import *
6
7
8 def legend_latex(obj):
9 """
10 Return the LaTeX representation of ``obj``, but wrap it in dollar
11 ($) signs so that we can pass it directly to plot() et al. as a
12 legend label.
13 """
14 return '$%s$' % latex(obj)