#4529: Implement plots with logarithmic scale
--------------------------------------------------------------+-------------
       Reporter:  ronanpaixao                                 |         Owner:  
ronanpaixao          
           Type:  enhancement                                 |        Status:  
needs_work           
       Priority:  major                                       |     Milestone:  
sage-5.1             
      Component:  graphics                                    |    Resolution:  
                     
       Keywords:  plot log scale                              |   Work issues:  
convenience functions
Report Upstream:  N/A                                         |     Reviewers:  
Karl-Dieter Crisman  
        Authors:  Punarbasu Purkayastha, Karl-Dieter Crisman  |     Merged in:  
                     
   Dependencies:  #12974                                      |      Stopgaps:  
                     
--------------------------------------------------------------+-------------

Comment (by ppurka):

 * trac_4529-add-log-scale.patch looks good.
 * trac_4529-single-tick.patch also seems ok. I guess, we just have to
 leave it up to the common sense of the user in certain cases.
 * trac_4529-docs-and-funcs.patch - I see that you fixed some of the typos!
 * trac_4529-more-doc.patch - yes, this is good.
 ----
 * Adding another patch which fixes some more typos.
 * `list_plot` does seem to behave a bit weird sometimes. But if we use
 `plotjoined=True`, then it works fine. Thanks for figuring out where it
 goes awry. I will have a look into it. Should the fix go into a separate
 ticket?
 * The plot commands in the documentation of `arc` and other functions
 don't usually work with the check for ticks and with log scale. This is
 even with `base=2`. For instance, the plot below. I guess we have to leave
 this up to the user to give a proper input.
 {{{
 arc((2,3), 2, 1, angle=pi/5, sector=(0,pi/2)).show(scale='loglog', base=2)
 arc((2,3), 2, 1, sector=(0,pi/2)).show(scale='loglog', base=2)
 }}}
 * For some commands like `disk` where an aspect ratio warning is given by
 matplotlib, we can leave it up to the user I think. The fix is relatively
 simple though; see the code for `parametric_plot` in the
 [attachment:trac_4529-docs-and-funcs.patch]. If we fix `disk`, then we
 need to weed out all the cases for the rest of the commands in
 `sage.plot.*`.
 * For adding plots - again we leave it up to the user. At present, adding
 log + linear works and matplotlib handles it. So, we should leave it at
 that. In my earlier code, I raised error because it was getting ambiguous
 what scale to set the `Graphics._xscale`, etc attribute to in case the
 user set the axis to log scale. It seems matplotlib prefers log over
 linear and sets everything to log.

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