I would like to be able to add legends to plots containing different lines or functions. Could anyone give an example of how to achieve this in SAGE? For example, the following plot would be nice with a legend containing the line colours and descriptions:
sage: P1=plot(x^2,0,3) sage: P1=plot(x^2,0,3,rgbcolor="red") sage: P2=plot(x^3,0,3,rgbcolor="blue") sage: show(P1+P2,axes_labels=['$x$', '$y$']) I read up a bit, but wasn't able to use any of the examples given for Matplotlib directly in my SAGE notebook. Thanks already for your help! Regards, Stan --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
