A small PGFPlots library to read tick labels from the content of a command through a key ticklabels from command
Place tikzlibrarypgfplots.ticklabels.command.code.tex in a directory read by your tex compiler.
Gnu General Public version, 3, as for PGFPlots.
It is suitable to write
'\newcommand{\myticks}{1,2,3}
and then to set
xtick=\myticks
as parameter to axis.
However, this cannot be done for
xticklabels
as the content
if the command is considered as the first label.
This small library provides a new key xticklabels from command
in which the labels are expanded.
'\newcommand{\mytickslabels}{a,b,c}
\begin{axis}[xticklabels from command=\mytickslabel]
...
\end{axis}
Add minor ticks
This is an alpha version.