#5645: error in axis plotting with large values
----------------------+-----------------------------------------------------
 Reporter:  robertwb  |       Owner:  was       
     Type:  defect    |      Status:  new       
 Priority:  major     |   Milestone:  sage-3.4.2
Component:  graphics  |    Keywords:            
----------------------+-----------------------------------------------------
 {{{
 sage: plot(e^(x^-2), (x, -1, 1))
 ------------------------------------------------------------
 Traceback (most recent call last):
   File "<ipython console>", line 1, in <module>
   File "/Users/robert/sage/current/local/lib/python2.5/site-
 packages/IPython/Prompts.py", line 551, in __call__
     manipulated_val = self.display(arg)
   File "/Users/robert/sage/current/local/lib/python2.5/site-
 packages/IPython/Prompts.py", line 577, in _display
     return self.shell.hooks.result_display(arg)
   File "/Users/robert/sage/current/local/lib/python2.5/site-
 packages/IPython/hooks.py", line 141, in __call__
     ret = cmd(*args, **kw)
   File "/Users/robert/sage/current/local/lib/python2.5/site-
 packages/IPython/hooks.py", line 171, in result_display
     out = pformat(arg)
   File "/Users/robert/sage/current/local/lib/python2.5/pprint.py", line
 111, in pformat
     self._format(object, sio, 0, 0, {}, 0)
   File "/Users/robert/sage/current/local/lib/python2.5/pprint.py", line
 129, in _format
     rep = self._repr(object, context, level - 1)
   File "/Users/robert/sage/current/local/lib/python2.5/pprint.py", line
 195, in _repr
     self._depth, level)
   File "/Users/robert/sage/current/local/lib/python2.5/pprint.py", line
 207, in format
     return _safe_repr(object, context, maxlevels, level)
   File "/Users/robert/sage/current/local/lib/python2.5/pprint.py", line
 292, in _safe_repr
     rep = repr(object)
   File "sage_object.pyx", line 98, in
 sage.structure.sage_object.SageObject.__repr__
 (sage/structure/sage_object.c:1085)
   File "/Users/robert/sage/current/local/lib/python2.5/site-
 packages/sage/plot/plot.py", line 861, in _repr_
     self.show()
   File "/Users/robert/sage/current/local/lib/python2.5/site-
 packages/sage/plot/plot.py", line 1297, in show
     hgridlinesstyle=hgridlinesstyle)
   File "/Users/robert/sage/current/local/lib/python2.5/site-
 packages/sage/plot/plot.py", line 1543, in save
     xmin, xmax, ymin, ymax = sage_axes.add_xy_axes(subplot, xmin, xmax,
 ymin, ymax)
   File "/Users/robert/sage/current/local/lib/python2.5/site-
 packages/sage/plot/axes.py", line 325, in add_xy_axes
     x_axis_ypos, ystep, ytslminor, ytslmajor = self._find_axes(ymin, ymax)
   File "/Users/robert/sage/current/local/lib/python2.5/site-
 packages/sage/plot/axes.py", line 241, in _find_axes
     tslmajor, oppaxis, step = self._tasteful_ticks(minval, maxval)
   File "/Users/robert/sage/current/local/lib/python2.5/site-
 packages/sage/plot/axes.py", line 125, in _tasteful_ticks
     sl = [s for s in str(int(absmax))]
 OverflowError: cannot convert float infinity to long

 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5645>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to