Re: Ordinate in Plot Command
- To: mathgroup at smc.vnet.net
- Subject: [mg70304] Re: Ordinate in Plot Command
- From: "Ray Koopman" <koopman at sfu.ca>
- Date: Thu, 12 Oct 2006 05:37:35 -0400 (EDT)
- References: <egi15s$j3i$1@smc.vnet.net>
Robert M. Mazo wrote:
> When one forces the axes origin to go through {0,0}
> (AxesOrigin->{0,0}) in a Plot command, and the function being plotted
> has no values near y = 0, Mathematica leaves a blank instead of
> printing the lower part of the y axis. Try
>
> Plot[x+.5, {x, 0, 1}, AxesOrigin ->{0,0}, PlotRange ->All]
>
> to see what I mean in a simple case. Does anyone know an easy
> workaround for this problem?
>
> Of course, you can have Mathematica draw in the missing part of the
> axis with a separate command, Line[{0,0}, {0, ordinate of point where
> y axis begins to print], but then you have to figure out where to put
> in the tick marks and labels. This is doable, but a nuisance. What I
> am looking for is a way to tell Mathematica "don't drop the lower part
> of the axis."
>
> Bob
Plot[x+.5, {x,0,1}, AxesOrigin -> .001{1,1},
PlotRange -> {{0,Automatic},{0,Automatic}}];
will extend the y-axis and also give you the labels at {0,0}.