On Jul 30, 1:05 pm, Laurent <[email protected]> wrote:
> Hello everyone
>
> The following small example draws the function in such a way that it
> "suggest" that f is negative between 0.8 and 1.
>
> var('x')
> f(x)=x+1/sqrt(x)
> plot(f,(0,2))
>
> Indeed, the X axis is drawn at y=2.
> Since nothing warn that behavior, it is quite disturbing.
>
> Is it willing ?
> I think that the value of y on the X axis should be explicitly written
> when it is not zero.
Yes, this is very common behavior of Sage whenever the input or output
of a function is not "close" to x=0 or y=0. The axis-drawing code
still has a lot of room for improvement, unfortunately.
In this case (in fact, in all such cases) one can determine the axis
by noting the other labels; in this case, the precise x axis is at
y=2.5, usually (this might occasionally change due to the randomized
point selection). That said, I agree that there is possible trouble
with this! You may wish to create an account at trac.sagemath.org/
sage_trac and file a ticket if you find this is not there (which I
believe it isn't, though there are several other tickets related to
axis problems).
With regard to this email, could you tell us exactly where you think
the best location for an indication of this would be, what the precise
wording of the label should be, etc? One problem is that the same
graph appears for
var('z')
g(z) = z + 1/sqrt(z)
and that sometimes the graph might be "busy" in any particular
location one chose. Some users might also find the labeling of axes
distracting. Anyway, please let us know what your ideas would be.
Thanks for your suggestion,
- kcrisman
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---