On 04/26/2014 08:57 PM, kcrisman wrote:
> 
> 
> 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:
> 
>     ...
> 
>     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.
> 

It's not a bad idea, but I don't think it's so important that we should
outlaw the plots entirely. Our show() command doesn't even have a 1:1
aspect ratio by default, so attempting to prevent the user from creating
a misleading plot (that he asked for) is a losing battle.

If we want to have more ticks, why don't we just stick them in there?
When I plot a function over [0,1], I don't get only two ticks, and it
definitely wouldn't force me to plot over [0,2] to disambiguate the
scale if I did. The user could still set the ticks manually of course.
It would be easy to get them from the list of ordered pairs. This would
probably be the best solution, but it requires more work.

The simple solution is to delete the "raise ValueError..."s. Then it
does the right thing. I really don't think we should try to force the
scale to be unambiguous; I could label the x-axis as "unicorns / km^3"
if I wanted to.

-- 
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