Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: label origin on plot

  • To: mathgroup at
  • Subject: [mg57616] Re: [mg57583] label origin on plot
  • From: "David Park" <djmp at>
  • Date: Thu, 2 Jun 2005 05:16:53 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

I'm a little surprised. With a standard Axes plot it does not seem possible
to get the zero ticks labeled.

Plot[1 - x^2, {x, 0, 1}];

Extending the lower plot range and even explicitly labeling the ticks still
does not work.

Plot[1 - x^2, {x, 0, 1},
    Ticks -> {Table[{i, i}, {i, 0, 1, 0.2}], Table[{i, i}, {i, 0, 1, 0.2}]},
    PlotRange -> {{-0.05, 1}, {-0.05, 1}}];

But using a Frame (which is generally better anyway) and extending the lower
plot range will label the zero points.

Plot[1 - x^2, {x, 0, 1},
    Frame -> True,
    PlotRange -> {{-0.01, 1}, {-0.01, 1}}];

If you don't want to show the entire Frame you can use...

Plot[1 - x^2, {x, 0, 1},
    Frame -> {True, True, False, False},
    PlotRange -> {{-0.01, 1}, {-0.01, 1}}];

David Park
djmp at

From: ptv-list at [mailto:von-hippel.1 at]
To: mathgroup at

In a 2-dimensional plot, Mathematica typically does not label the
origin. I would like X=0 to be labeled as "0." Is this possible?

  • Prev by Date: Re: computing the area inside a contour plot
  • Next by Date: Re: mml files
  • Previous by thread: Re: label origin on plot
  • Next by thread: Re: Re: label origin on plot