summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.tickoptions.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.tickoptions.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.tickoptions.tex9
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.tickoptions.tex b/Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.tickoptions.tex
index 0cb1556035f..228d9d8533a 100644
--- a/Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.tickoptions.tex
+++ b/Master/texmf-dist/doc/latex/pgfplots/pgfplots.reference.tickoptions.tex
@@ -241,7 +241,9 @@ xticklabels={{0,5}, $e$}.
$-\frac 12$,
$0$,
$\frac 12$,
- $1$}
+ $1$},
+ % note: \frac can be done automatically:
+ % xticklabel style={/pgf/number format/frac},
]
\addplot[smooth,blue,mark=*]
coordinates {
@@ -321,7 +323,7 @@ That means you can configure the appearance of linear axis with the number forma
\end{tikzpicture}
\end{codeexample}
-The following example uses explicitly formatted $x$ tick labels and a small \TeX\ script to format $y$ tick labels in the form \meta{sign}\meta{number}|/10|.
+The following example uses explicitly formatted $x$ tick labels and a small \TeX\ script to format $y$ tick labels as fractions in the form \meta{sign}\meta{number}|/10| (note that the |/pgf/number format/frac| style can do similar things automatically, see \PGFPlotstable\ and the documentation therein).
% \usepackage{nicefrac}
\begin{codeexample}[width=4cm]
% \usepackage{nicefrace}% required
@@ -345,6 +347,9 @@ The following example uses explicitly formatted $x$ tick labels and a small \TeX
\fi
\fi
},
+ % NOTE: this here does the same:
+ % yticklabel style={/pgf/number format/.cd,frac,
+ % frac TeX=\nicefrac,frac whole=false,frac denom=10},
ymajorgrids,
title=A special Prewavelet,
axis x line=center,