TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I shift ymin to zero when values are near to zero? I also try ymin=0 command but it does not work.

ybar, ymax=4,
legend style={at={(0.5,-0.20)},
anchor=north,legend columns=-1},
ylabel={Surface Roughness (nm)},
symbolic x coords={Glass,Silicon,PEN},
nodes near coords,
nodes near coords align={vertical},
\addplot [fill= white] coordinates {(Glass,2.4) (Silicon,1.1) (PEN,1.8)};
\addplot [fill = black] coordinates  {(Glass,1.1) (Silicon,0.2) (PEN,1.0)};

\caption{Substrate Vs IBD Surface Roughness(Avg)}
share|improve this question
Welcome to TeX.sx! Please add a few more lines to make your code a minimal working example (MWE) that illustrates your problem such that people can directly copy/paste and work on the problem. – percusse Oct 4 '12 at 10:52
I want that my ybars starts from exactly zero. I don't want any empty space between starting the ybar and x-axis. Thanks – Rizwan Oct 4 '12 at 11:32
Remove enlargelimits=0.15 and put ymin=0. But I was mentioning about making your code copy/paste compilable. – percusse Oct 4 '12 at 11:35
hey thanks percusse. Its perfect now. :) – Rizwan Oct 4 '12 at 11:44
Glad that you have solved your problem but I feel that I can't make my point clear. – percusse Oct 4 '12 at 11:46

Removing enlargelimits=0.15 and introducing ymin=0 again, would make the y-axis start from 0.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.