I have a plot with xticklabels
defined as symbolic.
In a modified version of my plot, I want to set ymin
value. When doing this, my plot is automatically updated: all x series having only points which y value is below this new ymin are removed. How can I change this behavior ?
Here is an example:
\documentclass[a4paper, landscape]{article}
\usepackage{pgfplots}
\usepackage[utf8]{inputenc}
\usepackage[margin=0.5cm]{geometry}
\pgfplotsset{compat=1.3}
\begin{document}
\centering
\begin{tikzpicture}
\begin{axis}[
symbolic x coords={X0, X1, X2, X3},
xtick=data,
grid=major,
only marks
]
\addplot coordinates {(X0,0) (X1,1) (X2,2) (X3,3)};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[
symbolic x coords={X0, X1, X2, X3},
xtick=data,
grid=major,
only marks,
ymin=1
]
\addplot coordinates {(X0,0) (X1,1) (X2,2) (X3,3)};
\end{axis}
\end{tikzpicture}
\end{document}
Here is the result. On the second graph I would like to have X0 xtick label visible even if it's point is not.
\documentclass{...}
and ending with\end{document}
.xticklabels from table
that you mentioned? Do you have a case where the x tick labels are affected by aymin
value?