| 1 | initial version |
The secret sauce is that you can ask legend_label to use the LaTeX representation of the function like so:
p1=plot(y1, (t,-5,5), gridlines=True,color='red', legend_label='$'+latex(y1)+'$')
See this live example.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.