Hi,

I get following message

  ! Package pgfplots Warning: Axis range for axis y is approximately equal;
    enlargeing it.

(btw, s/enlargeing/enlarging/)

because of the first plot in this (quite) minimal example:

\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ ybar stacked ]
\addplot coordinates { (0, 1) (1, 1) };
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[ ybar stacked ]
\addplot coordinates { (0, 1) (1, 0) };
\addplot coordinates { (0, 0) (1, 1) };
\end{axis}
\end{tikzpicture}
\end{document}

Since I want to place several smaller plots side by side (and I 
know that the data fits in 0:1 on the y axis) I don't want that pgfplots
automatically enlarges the y-axis. At least not that much.

I basically want the y-axis on the like exactly like in the plot on the
right.

I've played around with some options, but was not successful.

For example 'enlargelimits=false' has an effect, but only on the x-axis,
where the first and last bar is cropped. Using 'ymax' does not make a
difference, which I guess is to be expected because it only filters
values.

Probably I am missing something very basic in the manual. Thus my question:
How can I disable the automatic enlarging of the y-axis?

Or more general: How can I have full control over the y-axis?

Thanks for the great pgfplots package and best regards
Georg



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Pgfplots-features mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to