Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1012 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 1012 Bytes

ticklabels.command - read ticks labels from commands

Overview

A small PGFPlots library to read tick labels from the content of a command through a key ticklabels from command

Installation

Place tikzlibrarypgfplots.ticklabels.command.code.tex in a directory read by your tex compiler.

Licence

Gnu General Public version, 3, as for PGFPlots.

Motivation and usage

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}

TODO

Add minor ticks

Note

This is an alpha version.