0

I'm working on a Latex project and I have to make some graphics.

In one of them, I need in the X axis to display some month of the year. For a test, I used : Aout,Sep,Oct,Nov,Dec When I write it directly in the Latex file, it is working. But I need it to be dynamic, I want to use it with a variable.

\def \test{Aout,Sep,Oct,Nov,Dec}

\begin{tikzpicture} \begin{axis}[ symbolic x coords = {\test}, ] \addplot[] ...

\end{axis} \end{tikzpicture}

Any idea how I can do it ?

moewe
  • 175,683
simsim
  • 1

0 Answers0