Skip to content

Adding keys (x|y|z)tiklabels from command to PGFPlots to initialize the labels from the content of control sequence

License

Notifications You must be signed in to change notification settings

antoinelejay/ticklabels-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Adding keys (x|y|z)tiklabels from command to PGFPlots to initialize the labels from the content of control sequence

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages