#7296: set_aspect_ratio fails with a type error for asymptote
------------------------+---------------------------------------------------
   Reporter:  fmaltey   |       Owner:  was       
       Type:  defect    |      Status:  new       
   Priority:  major     |   Milestone:  sage-4.2.1
  Component:  graphics  |    Keywords:            
Work_issues:            |      Author:            
   Reviewer:            |      Merged:            
------------------------+---------------------------------------------------
 I test plot for usual functions with set_aspect_ratio(1) to get "the right
 plot".
 {{{
 res=plot(tan(x),x,0,pi/2-0.01)
 res.set_aspect_ratio(1)
 res
 }}}

 This graph isn't pretty but it's the pertinent plot.

 Then I plot a new graph closer at x=pi/2
 {{{
 res=plot(tan(x),x,0,pi/2-0.0001)
 res                          # is right
 res.set_aspect_ratio(1)
 res # I get a system error with a trace
 }}}

 It seems it's an overflow error with a plot too thin.
 height / width = 10000.
 I expect a warning or an standard error, not this break.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7296>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
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