#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  |     Merged in:                       
   Dependencies:  #12974                 |      Stopgaps:                       
-----------------------------------------+----------------------------------

Comment (by kcrisman):

 Sorry for the delay - I only scheduled a couple hours of work this
 evening.  Tomorrow I will have more time.

 Hey, I just had an idea.  Maybe this ticket should be ''only'' about the
 ticket description, and then another ticket for adding the "shortcut"
 commands like `plot_loglog` or whatever.  In which case the current
 patches might be enough!  (After much testing, of course.)  What do you
 think?

 More comments:
 * Wow, great catch on all those things like the minor ticks etc.  I
 haven't really tested many of these plots yet, focusing on the code right
 now, so I'm glad you found a lot of those things.
 * We'll eventually want to add some examples (or replace some of these)
 with the `plot(...,scale='loglog')` format ones.  And definitely to add
 some to the file `plot.py`, since that is where a lot of people will look
 first for how to get this.  '''But''' that can wait until the end, I'll be
 happy to do that in a reviewer patch.
 * Catching this thing about the flipped `xmin/xmax` and friends is just a
 bonus - again, great catch and solution.
 * As to the optional patch, I will think about this some more tomorrow.  I
 do note that things still "work".  For the example you removed `G`, the
 example you removed did in fact work, for instance.
 {{{
 sage: G.show(scale=('loglog', 5)) # plots
 sage: G.show(scale=('loglog', 4)) # plots
 sage: G.show(scale=('loglog', 6)) # error
 }}}
   because it really depends on the ''minor'' ticks as well.  I'm not sure
 whether having minor ticks should count as "having two ticks", especially
 in the relatively obscure-looking log plot situation.  I'm not even sure
 why
 {{{
 sage: G.show(scale=('loglog', 2))
 }}}
   works, since there is only one tick on the left!
 * So all that said, I really am not sure why this is a problem.  If
 someone is dumb enough to plot a CIRCLE with log scales, then they had
 better know how to pick the right scale so that this works.    But the
 same would be true for plotting data, as you point out.
 * Along those lines, your example (changed)
 {{{
 sage: p = list_plot(range(1, 10), plotjoined=True)
 sage: p.show(scale='loglog',base=2)
 }}}
   doesn't show any minor ticks.  Is that just how `LogLocator` works, or
 is there something wrong?

 Obviously at this point we are getting close to nitpicking.  I'll try more
 tomorrow.

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