summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.axisdescription.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.axisdescription.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.axisdescription.tex18
1 files changed, 15 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.axisdescription.tex b/Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.axisdescription.tex
index a97eb068e5e..0e7dc2f4705 100644
--- a/Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.axisdescription.tex
+++ b/Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.axisdescription.tex
@@ -907,6 +907,8 @@ Allows to replace the default images which are drawn inside of legends. When thi
The default is the style |line legend|.
+
+\paragraph{Technical note:} At the time when legend images are drawn, the style |every axis legend| is in effect -- which have unwanted side-effects due to changed parameters (especially those concerning node placement, alignment, and shifting). It might be necessary to reset these parameters manually (\PGFPlots\ also attempts to reset the fill color).
\end{pgfplotscodekey}
\begin{stylekey}{/pgfplots/line legend}
@@ -1376,7 +1378,7 @@ Note that legend texts are realized using |\node|\oarg{options} \marg{text}|;|,
These keys allow to choose the locations of the axis lines. The last one, |axis lines| sets the same value for every axis.
Ticks and tick labels are placed according to the chosen value as well.
-The choice |bottom| will draw the $x$ line at $y=y_{\text{min}}$, |middle| will draw the $x$~line at $y=0$, and |top| will draw it at $y=y_{\text{max}}$. Finally, |box| is a combination of options |top| and |bottom|. The $y$~variant works similarly.
+The choice |bottom| will draw the $x$ line at $y=y_{\text{min}}$, |middle| will draw the $x$~line at $y=0$, and |top| will draw it at $y=y_{\text{max}}$. Finally, |box| is a combination of options |top| and |bottom|. The choice |axis x line=none| is an alias for |hide x axis|. The $y$- and $z$ variants work in a similar way.
The case |center| is a synonym for |middle|, both draw the line through the respective coordinate~$0$. If this coordinate is not part of the axis limit, the lower axis limit is chosen instead.
@@ -1384,9 +1386,9 @@ The case |center| is a synonym for |middle|, both draw the line through the resp
The starred versions $\dotsc$|line*| \emph{only} affect the axis lines, without correcting the positions of axis labels, tick lines or other keys which are (possibly) affected by a changed axis line. The non-starred versions are actually styles which set the starred key \emph{and} some other keys which also affect the figure layout:
\begin{itemize}
\item In case |axis x line=box|, the style |every boxed x axis| will be installed immediately.
- \item In case |axis x line|$\neq$|box|, the style |every non boxed x axis| will be installed immediately. Furthermore, axis labels positions will be adjusted to fit the chosen value.
+ \item In case |axis x line|$\neq$|box|, the style |every non boxed x axis| will be installed immediately. Furthermore, some of these choices will modify axis label positions.
\end{itemize}
-The same holds true for the |y|-variants. The default styles are defined as
+The handling of |axis y line| and |axis z line| is similar. The default styles are defined as
\begin{codeexample}[code only]
\pgfplotsset{
every non boxed x axis/.style={
@@ -1397,6 +1399,16 @@ The same holds true for the |y|-variants. The default styles are defined as
every boxed x axis/.style={}
}
\end{codeexample}
+In addition, conditional modifications of axis label styles will be taken. For example, |axis x line=middle| will set
+\begin{codeexample}[code only]
+\pgfplotsset{every axis x label/.style={at={(current axis.left of origin)},anchor=south west}}
+\end{codeexample}
+if the matching $y$ style has value |axis y line=right| and
+\begin{codeexample}[code only]
+\pgfplotsset{every axis x label/.style={at={(current axis.right of origin)},anchor=south east}}
+\end{codeexample}
+if |axis y line|$\neq$|right|.
+
Feel free to overwrite these styles if the default doesn't fit your needs or taste. Again, these styles will \emph{not} be used for |axis line*|.
\begin{codeexample}[]