#15320: plot_semilogx(1/log(x),10,10^15) should look like plot(1/x,1,15)
------------------------+--------------------------------------------------
   Reporter:  slabbe    |            Owner:
       Type:  defect    |           Status:  new
   Priority:  major     |        Milestone:  sage-5.13
  Component:  graphics  |         Keywords:  adaptive refinement, log scale
  Merged in:            |          Authors:
  Reviewers:            |  Report Upstream:  N/A
Work issues:            |           Branch:
     Commit:            |     Dependencies:
   Stopgaps:            |
------------------------+--------------------------------------------------
 The adaptive refinement plotting code is not well adapted for a
 logarithmic scale on the x axis.

 In the following example, where the x ranges from `10` to `10^15` no
 values are computed between `10` and `10^12` which is a big part of the
 plot when drawn on a logarithmic scale. The plot is linear from `x=10` to
 `x=10^12` which is quite weird; it should look like the inverse of x :
 {{{plot(1/x,1,15)}}}.

 {{{
 plot_semilogx(1/log(x),10,10^15)
 }}}

 By changing the left most point of the interval, we confirm the problem:

 {{{
 sage: p =
 plot(1/log(x),10,10^15,scale='semilogx',color='blue',thickness=3)
 sage: q = plot(1/log(x),100,10^15,scale='semilogx',color='red',
 thickness=3)
 sage: r =
 plot(1/log(x),1000,10^15,scale='semilogx',color='green',thickness=3)
 sage: p+q+r
 }}}

 Also, the semilogx plots looks thinner than usual. I don't know why. This
 is why I increase the thickness.

--
Ticket URL: <http://trac.sagemath.org/ticket/15320>
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