X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Fmisc.py;h=1b3a5a94090bb2bfa7120d355d3f25683c2116f2;hb=HEAD;hp=28113b6473d871eb0cd3a9abb6b104be5df01a19;hpb=0c3f106bf9d1eb680a3429b8895077bb2d9c5812;p=sage.d.git diff --git a/mjo/misc.py b/mjo/misc.py index 28113b6..1b3a5a9 100644 --- a/mjo/misc.py +++ b/mjo/misc.py @@ -4,9 +4,10 @@ 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 + 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. """