On Saturday, April 26, 2014 6:17:00 PM UTC-4, 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: 
>

I'm pretty sure we just put that in place because we typically wanted at 
least two major ticket so one could actually SEE that it was a log plot. 
 Otherwise it's like a plot with only one labeled tick - contextless. (I 
mean one tick and no axes.)   But I suppose one could allow this to be 
overridden or something... or maybe our argument was dumb, which is also 
certainly possible!  It is a tiny bit of handholding, it's true.

- kcrisman

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to