http://trac.sagemath.org/ticket/13422
On Saturday, April 26, 2014 3:17:00 PM UTC-7, Michael Orlitzky wrote:
>
> If we try to plot some values in sage on a loglog scale where there will
> be fewer than 2 ticks on the (say) x-axis, it throws a ValueError:
>
> ValueError: Either expand the range of the independent variable to
> allow two different integer powers of your `base`, or change your
> `base` to a smaller number.
>
> I see no reason to disallow this; I often want to plot values between
> zero and ten on a log_10 scale. In fact if I comment out the "raise" in
> sage, I get the plot I want with no other (apparent) negative effects.
>
> Does anyone remember why this is in place? Can we get rid of it? Here is
> some code that will throw the ValueError:
>
> from sage.all import *
>
> u1_points = [(1,17.10095360023844),
> (3,11.390822965745611),
> (7,7.572843732189597),
> (15,5.020820222090607),
> (31,3.322248387376159)]
>
> u2_points = [(3.0,7.062958467518104),
> (7.0,4.653624065352839),
> (15.0,3.0687723922185906),
> (31.0,2.0241074994435957),
> (63.0,1.3351289174481258)]
>
> u1_label=r'$uniform_{1}$'
> u2_label=r'$uniform_{2}$'
> p1 = list_plot_loglog(u1_points,
> plotjoined=True,
> legend_label=u1_label,
> base=10)
> p2 = list_plot_loglog(u2_points,
> plotjoined=True,
> color='red',
> legend_label=u2_label,
> base=10)
> p = p1 + p2
> p.show()
>
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.