#13528: ymin is not respected in logarithmic plots
-----------------------------------------+----------------------------------
       Reporter:  ppurka                 |         Owner:  jason, was         
           Type:  defect                 |        Status:  positive_review    
       Priority:  major                  |     Milestone:  sage-pending       
      Component:  graphics               |    Resolution:                     
       Keywords:  log plot, ymin         |   Work issues:                     
Report Upstream:  N/A                    |     Reviewers:  Karl-Dieter Crisman
        Authors:  Punarbasu Purkayastha  |     Merged in:                     
   Dependencies:  #13422                 |      Stopgaps:                     
-----------------------------------------+----------------------------------

Old description:

> See this [https://groups.google.com/forum/?fromgroups=#!topic/sage-
> devel/OnhVtHXgdls sage-devel thread]
>
> 1. I've been experiencing some problems with logarithmic scale plots
> since the 'semilogy', 'semilogx' and 'loglog' options had been added. For
> example, when I use the 'semilogy' plot, I can adjust the 'ymax' value,
> but not 'ymin' value. 'ymin' is always set automatically, and not always
> correctly.
> 2.  I have also noticed that if I have several curves on a single
> 'semilogy' plot, the lower Y limit is set according the minimum value of
> the FIRST curve. '''Can not reproduce this case -basu.'''
>
> Example showing weird behavior on decreasing `ymin` to `1e3`, `1e4`,
> etc., but exhibiting correct behavior on changing `ymax`.
> {{{
> dPhi = 6.02e10 * x**(2.481) * exp(-x / 1.205)
> plot(dPhi, 0, 20, scale='semilogy', figsize=(5,4), ymin=1e7, ymax=1e11,
> xmin=0, xmax=20, frame=True)
> }}}
>
> ----
>
> Apply to `devel/sage`:
> 1. #13422
> 2. [attachment:trac_13528-fix_axes_pad.patch]

New description:

 See this [https://groups.google.com/forum/?fromgroups=#!topic/sage-
 devel/OnhVtHXgdls sage-devel thread]

 1. I've been experiencing some problems with logarithmic scale plots since
 the 'semilogy', 'semilogx' and 'loglog' options had been added. For
 example, when I use the 'semilogy' plot, I can adjust the 'ymax' value,
 but not 'ymin' value. 'ymin' is always set automatically, and not always
 correctly.
 2.  I have also noticed that if I have several curves on a single
 'semilogy' plot, the lower Y limit is set according the minimum value of
 the FIRST curve. '''Can not reproduce this case -basu.'''

 Example showing weird behavior on decreasing `ymin` to `1e3`, `1e4`, etc.,
 but exhibiting correct behavior on changing `ymax`.
 {{{
 dPhi = 6.02e10 * x**(2.481) * exp(-x / 1.205)
 plot(dPhi, 0, 20, scale='semilogy', figsize=(5,4), ymin=1e7, ymax=1e11,
 xmin=0, xmax=20, frame=True)
 }}}

 ----

 Apply to `devel/sage`:
 1. #13422
 2. [attachment:trac_13528-rebase.patch ]

--

Comment (by kcrisman):

 apply trac_13528-rebase.patch

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13528#comment:9>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to