To address my dilemma regarding line plots, I read about matplotlib at http://matplotlib.sourceforge.net/users/transforms_tutorial.html. This is a library that a user can import into their Sage worksheet to allow then more flexibility with plots. When using matplotlib, the user may have to apply certain backends to achieve visibility of plots. The backend the user applies depends solely on where he/she is using matplotlib interactively from.
A few minutes ago I published a sage worksheet called "Line Plot with Matplotlib". Cell 1 of this sheet shows a simple plot using a hardcopy backend to create a PNG file. This is an item that Jason Grout helped me with. Thanks Jason! Cell 2 (#Their version from matplotlib documentation) uses pylab instead of pyplot. The code in cell 2 was obtained from the matplotlib website. I could not get this to work, instead I inserted my own version in cell 3 (#My version), which produces the same plot that cell 2 would produce had it worked. If anybody can get cell 2 working, then that would be really cool. *However, the code in cell 4, is where I really need the help. The code in cell 4 is suppose to display the xy data at a certain location on the line plot. I have looked at this for a while, but I am confused as to why it doesn't work. This code was also taken from the mathplotlib website. Any help on this in particular would be neat. In my spare time, I will continue to work on this. Thanks, Eric On Sep 15, 3:18 pm, Jason Grout <jason-s...@creativetrax.com> wrote: > Jason Grout wrote: > > Eric Jackson wrote: > >> I'm not thinking of matplotlib html5. However, I am fairly new to > >> working with Sage. I will do some research to see what matplotlib > >> html5 is about. > > > It's not finished. Here is a demo of what gnuplot can do with an html5 > > canvas backend: > > >http://gnuplot.sourceforge.net/demo_canvas/ > > > (notice the coordinates at the bottom of the plot). > > > Jason > > Here's an example of the matplotlib canvas backend: > > http://dl.getdropbox.com/u/178748/mpl/test.html > > (it doesn't have the coordinate tracking feature implemented, I think). > > Jason > > -- > Jason Grout --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---