I don't get this error with 3.1.2 on an intel os x 10.4 machine. It looks like a pretty innocent example.
Anyone else reproduce this? M. Hampton On Sep 18, 4:30 pm, "Minh Nguyen" <[EMAIL PROTECTED]> wrote: > Hi folks, > > On Fri, Sep 19, 2008 at 7:17 AM, Minh Nguyen <[EMAIL PROTECTED]> wrote: > > Hi folks, > > > The calculus tutorial at > > >http://sage.math.washington.edu/home/elliottd/calctut/tangent.html > > > contains the following code snippet: > > > (plot(3/x, x, -3, 0)+plot(-3*x/4-3, -3, 0, rgbcolor='red')+point((-2, > > -3/2), \ > > rgbcolor='black', pointsize=30)).show(xmin=-3, xmax=0, ymin=-10, ymax=0) > > [...] > > Again I tried executing the above code under openSUSE 11.0, kernel > 2.6.25.5-1.1-pae, with laptop architecture Celeron 2GHz, 1024 MB. But > I still received an overflow message. I'm not sure what's going on. > Perhaps someone can enlighten me. > > --- begin overflow message --- > > sage: (plot(3/x, x, -3, 0)+plot(-3*x/4-3, -3, 0, > rgbcolor='red')+point((-2, -3/2),rgbcolor='black', > pointsize=30)).show(xmin=-3, xmax=0, ymin=-10, ymax=0) > --------------------------------------------------------------------------- > OverflowError Traceback (most recent call last) > > /home/mvngu/<ipython console> in <module>() > > /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/sage/plot/plot.py > in show(self, xmin, xmax, ymin, ymax, figsize, filename, dpi, axes, > axes_labels, frame, fontsize, aspect_ratio, gridlines, gridlinesstyle, > vgridlinesstyle, hgridlinesstyle) > 1363 gridlinesstyle=gridlinesstyle, > 1364 vgridlinesstyle=vgridlinesstyle, > -> 1365 hgridlinesstyle=hgridlinesstyle) > 1366 os.system('%s %s 2>/dev/null 1>/dev/null > &'%(sage.misc.viewer.browser(), filename)) > 1367 > > /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/sage/plot/plot.py > in save(self, filename, xmin, xmax, ymin, ymax, figsize, figure, sub, > savenow, dpi, axes, axes_labels, fontsize, frame, verify, > aspect_ratio, gridlines, gridlinesstyle, vgridlinesstyle, > hgridlinesstyle) > 1514 if isinstance(g, GraphicPrimitive_MatrixPlot): > 1515 matrixplot = True > -> 1516 g._render_on_subplot(subplot) > 1517 > 1518 #adjust the xy limits and draw the axes: > > /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/sage/plot/plot.py > in _render_on_subplot(self, subplot) > 2363 s = int(options['pointsize']) > 2364 faceted = options['faceted'] #faceted=True colors the > edge of point > -> 2365 subplot.scatter(self.xdata, self.ydata, s=s, c=c, > alpha=a, faceted=faceted) > 2366 > 2367 class GraphicPrimitive_Polygon(GraphicPrimitive): > > /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/matplotlib/axes.py > in scatter(self, x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, > linewidths, faceted, verts, **kwargs) > 4242 corners = (minx-padx, miny-pady), (maxx+padx, maxy+pady) > 4243 self.update_datalim( corners) > -> 4244 self.autoscale_view() > 4245 > 4246 # add the collection last > > /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/matplotlib/axes.py > in autoscale_view(self, tight, scalex, scaley) > 1271 ylocator = self.yaxis.get_major_locator() > 1272 yl = self.get_ybound() > -> 1273 YL = ylocator.autoscale() > 1274 self.set_ybound(YL) > 1275 #### Drawing > > /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/matplotlib/ticker.py > in autoscale(self) > 882 dmin, dmax = self.dataInterval.get_bounds() > 883 dmin, dmax = mtrans.nonsingular(dmin, dmax, expander = 0.05) > --> 884 return npy.take(self.bin_boundaries(dmin, dmax), [0,-1]) > 885 > 886 > > /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/matplotlib/ticker.py > in bin_boundaries(self, vmin, vmax) > 850 def bin_boundaries(self, vmin, vmax): > 851 nbins = self._nbins > --> 852 scale, offset = scale_range(vmin, vmax, nbins) > 853 if self._integer: > 854 scale = max(1, scale) > > /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/matplotlib/ticker.py > in scale_range(vmin, vmax, n, threshold) > 818 offset = 0 > 819 elif meanv > 0: > --> 820 ex = divmod(math.log10(meanv), 1)[0] > 821 offset = 10**ex > 822 else: > > OverflowError: math range error > > -- > Regards > Minh Van Nguyen > > Web:http://nguyenminh2.googlepages.com > Blog:http://mvngu.wordpress.com --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---