MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Ordinate in Plot Command

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70292] RE: [mg70271] Ordinate in Plot Command
  • From: "David Park" <djmp at earthlink.net>
  • Date: Thu, 12 Oct 2006 05:36:51 -0400 (EDT)

Bob,

Use a PlotRange that includes the axis origin.

Plot[x + .5, {x, 0, 1},
    AxesOrigin -> {0, 0},
    PlotRange -> {Automatic, {-0.1, Automatic}}];

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 

From: Robert M. Mazo [mailto:mazo at uoregon.edu]
To: mathgroup at smc.vnet.net


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 



  • Prev by Date: Re: Ordinate in Plot Command
  • Next by Date: Re: recursive blues :(
  • Previous by thread: Re: Ordinate in Plot Command
  • Next by thread: Re: Ordinate in Plot Command