xs was the list of x coordinates which I created with range (1,10000,100).
On Feb 19, 9:03 pm, William Stein <[email protected]> wrote: > On Thu, Feb 19, 2009 at 3:46 PM, M. Yurko <[email protected]> wrote: > > > First off, I know that this is specificaly a SAGE issue, but I can't > > find a matplotlib list, so I'm hoping that someone here can help. I > > recieve an error when executing the following code in the notebook: > > > #Create the graph > > import pylab > > pylab.clf() > > pylab.figure(1) > > pylab.plot(xs, bits24_original, label="$S_n$") > > What is xs? > > William > > > > > pylab.legend(loc=2) > > pylab.ylabel("iterations") > > pylab.xlabel("x") > > pylab.grid(b=True) > > pylab.savefig('graph.svg',dpi=1000) > > > and I get > > > traceback (most recent call last): pylab.plot(xs, bits24_original, > > label="$S_n$") #plot the data > > File "/home/myurko/Desktop/sage/local/lib/python2.5/site-packages/ > > matplotlib/pyplot.py", line 333, in clf > > gcf().clf() > > File "/home/myurko/Desktop/sage/local/lib/python2.5/site-packages/ > > matplotlib/figure.py", line 693, in clf > > ax.cla() > > File "/home/myurko/Desktop/sage/local/lib/python2.5/site-packages/ > > matplotlib/axes.py", line 827, in cla > > self.set_xscale('linear') > > File "/home/myurko/Desktop/sage/local/lib/python2.5/site-packages/ > > matplotlib/axes.py", line 1817, in set_xscale > > self.autoscale_view() > > File "/home/myurko/Desktop/sage/local/lib/python2.5/site-packages/ > > matplotlib/axes.py", line 1437, in autoscale_view > > YL = self.yaxis.get_major_locator().autoscale() > > File "/home/myurko/Desktop/sage/local/lib/python2.5/site-packages/ > > matplotlib/ticker.py", line 945, in autoscale > > return np.take(self.bin_boundaries(dmin, dmax), [0,-1]) > > File "/home/myurko/Desktop/sage/local/lib/python2.5/site-packages/ > > matplotlib/ticker.py", line 911, in bin_boundaries > > scale, offset = scale_range(vmin, vmax, nbins) > > File "/home/myurko/Desktop/sage/local/lib/python2.5/site-packages/ > > matplotlib/ticker.py", line 875, in scale_range > > ex = divmod(math.log10(meanv), 1)[0] > > OverflowError: math range error > > > A quick google serach yielded on person who had the same issue in > > 2006, but there was no response. Also, this same code executed just a > > few days ago without errors. Any help would be appreciated. > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://wstein.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
