Philip Brocoum wrote: > If you look at my list_plot at http://imgur.com/OHorX.png you will > notice that the x-axis is in the middle of the graph for some reason. > This is confusing, because it makes it look as though some values are > negative, when they really aren't (y goes from 8 to 15). Options such > as xmin or ymin don't help. > > Is there any way to fix this?
I am almost done with an extensive modification of the plotting code that uses the new matplotlib and fixes this problem. I think it will be done before the end of the week. I just have to finish implementing the gridline functionality using calls to matplotlib instead of all the custom code that we use. The philosophy I've taken with these modifications is that axes in the center of the picture should *only* cross at the origin. If your plot is entirely contained in the upper right quadrant, then you will see axes on the left and the bottom. If your graph is entirely contained in the lower right quadrant, then you will see axes on the left and the top. If your graph covers the xrange (1,5) and the yrange (-3,3), then you will see the y-axis on the left, and the x-axis will cut through the middle of your graph. Essentially, any axis line that cuts through your graph is actually the axis (i.e., x or y = 0). Any other time, the axis is on the side of the graph that it should be intuitively, given the quadrant your picture is in. It would be easy to add functionality to allow a user to specify an axis intersection coordinate, but for now, I am just implementing the current functionality. I'm also making it trivial to get the matplotlib object out of a Sage Graphic(), so you can use the extensive and very nice tools in matplotlib to post-process graphs. 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 -~----------~----~----~----~------~----~------~--~---