[sage-support] Re: Line Plots
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 -~--~~~~--~~--~--~---
[sage-support] Re: Line Plots
Thanks, I just figured this out right after I posted. This should have been obvious, I guess I got brain tired. Thanks again, Eric On Sep 23, 2009, at 2:13 PM, Jason Grout wrote: Eric Jackson wrote: 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. You can't use show. Use savefig, as in: savefig('test.png') The sage notebook automatically displays any graphic file you generate in a cell. That's why we need to save the figure to a graphics file, like test.png. Then the notebook comes along, sees that the cell generated a graphic file, and displays it. *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. Just change the last line to plt.savefig... just like the first cell. It's not savefile, it's savefig :). Thanks, Jason --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[sage-support] sagenb.org
Earlier today I signed up through sagenb.org so that I can publish my worksheet. The signing up process was simple, but whenever I try to login, I receive errors. I've checked my login information and it is accurate. Is there anyone else having problems? Eric --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[sage-support] Re: sagenb.org
Thanks William, I input demo.sagenb.org into my google search box and came to a website called Symmetric Group (Demo) Sage. However, how can I upload my worksheet, so that others can view it? Also, for a while, I thought the problem of logging in was me, so I created other accounts that you can delete. All of the accounts were created today within minutes of one another. The user names for the accounts that you can delete are 19eric, eric19., and eric19. Thanks, Eric On Sep 22, 2009, at 2:10 PM, William Stein wrote: On Tue, Sep 22, 2009 at 2:04 PM, Eric Jackson eric...@comcast.net wrote: Earlier today I signed up through sagenb.org so that I can publish my worksheet. The signing up process was simple, but whenever I try to login, I receive errors. I've checked my login information and it is accurate. Is there anyone else having problems? I just logged in and computed 2+3. However, I did get two indicators that it was slow today (I have a monitor script). Also, sage is getting some discussion on slashdot right now. I also just logged in and found that the number of sagenb.org accounts went up from about 4000 (last time I checked 1-2 weeks go) to 7381 right now. It looks like 249 accounts were created today, maybe. So it's getting hammered. It's just a dual core virtual machine. Here's a hint -- I made some extra secret notebook servers you can use: demo.sagenb.org, demo2.sagenb.org. That might be helpful. Also, I'm actively working on a major rewrite to improve robustness and scalability a *lot*. William Eric -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[sage-support] GNUPLOT
Recently, I downloaded the latest testing binary (Version 4.3) of GNUPLOT on my computer. I read through the GNUPLOT tutorial on subjects related to plotting, and I wanted to find information on how to use GNUPLOT in my Sage Worksheet. In my Sage Worksheet I input statements such as, import gnuplot.lib and import gnuplot_lib. In my mind, these statements would allow me access to the gnuplot commands in my Sage Worksheet. However, this did not work. Does anybody have an idea on how I can get this working? Thanks, Eric --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[sage-support] Re: Line Plots
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. As far as what I'm doing, I've created a plot of a function, say sin (t) that is evaluated from t, -2*pi,2*pi. As I am viewing the plot, I would like to move my cursor along the sin(t) curve and in real time see what the xy coordinates are at various locations on the curve. Eric On Sep 14, 9:10 am, Jason Grout jason-s...@creativetrax.com wrote: William Stein wrote: It will in the near future. Are you thinking of the matplotlib html5 canvas backend that is being developed? Or is there something else that you are doing? Jason --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---