Dear Georg, the "Axis range for axis y is approximately equal" is raised because for the first plot, ymin=1 and ymax=1 (resulting in an axis range of 0 which can't possibly be visualized).
The error message is a little bit misleading -- it actually doesn't have anything to do with the "enlargelimits" option (the enlargelimits option is only used to modify non-vanishing ranges). The cure here is to provide a non-vanishing axis range, for example by providing ymin and/or ymax manually or by adding more data points with distinct y values. For example, ymin=0 will remove the error message. Since your y data range is always 0:1, you may want to set ymin=0,ymax=1 for each plot. The enlargelimits option in its initial configuration applies only to limits which have been determined automatically, so it won't influence the ymin=0,ymax=1 keys. Best regards Christian Am 15.09.2010 23:07, schrieb Georg Sauthoff: > 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 > Pgfplots-features@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pgfplots-features ------------------------------------------------------------------------------ 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 Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features