#2100: sensible defaults for aspect ratio
-------------------------------------------------------+--------------------
   Reporter:  jason                                    |       Owner:  jason    
   
       Type:  enhancement                              |      Status:  
needs_review
   Priority:  major                                    |   Milestone:  
sage-4.6.2  
  Component:  graphics                                 |    Keywords:           
   
     Author:  Jason Grout, Karl-Dieter Crisman         |    Upstream:  N/A      
   
   Reviewer:  Andrey Novoseltsev, Karl-Dieter Crisman  |      Merged:           
   
Work_issues:  unify option names                       |  
-------------------------------------------------------+--------------------

Comment(by kcrisman):

 Here is some code that looks less good with this patch than before.
 {{{
 def my_eulers_method_plot(a_function,x0,y0,h,x1):
     n=int((1.0)*(x1-x0)/h)
     x00=x0; y00=y0
     x01=x0; y01=y0
     P=point((x00,y00),rgbcolor=hue(1)) # red
     Q=Graphics() # default is blue
     f(x,y)=a_function(x,y) # Note that a_function should be a callable
 function of x, then y
     for i in range(n+1):
         y01 = y00+h*f(x00,y00)
         x01 = x00+h
         P=P+point((x01,y01),rgbcolor=hue(1))
         Q=Q+line([(x00,y00),(x01,y01)])
         x00=x01
         y00=y01
     return(P+Q)

 var('x,y')
 def euler_logistic_plot(parameter,y_start,end=15,step=1):
     function(x,y)=parameter*y*(1-y)
     my_eulers_method_plot(function,0,y_start,step,end).show(ymin=0)

 euler_logistic_plot(2,.7,97,.8)
 }}}
 I'll try to attach before and after.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/2100#comment:61>
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