I am trying to use a custom color cycler for all my plots in my thesis. In my LaTeX style document I defined some colours for testing, here is an example which I found on SO:
\usepackage{pgfplots}
\definecolor{blues1}{RGB}{198, 219, 239}
\definecolor{blues2}{RGB}{158, 202, 225}
\definecolor{blues3}{RGB}{107, 174, 214}
\definecolor{blues4}{RGB}{49, 130, 189}
\definecolor{blues5}{RGB}{8, 81, 156}
\pgfplotscreateplotcyclelist{colorbrewer-blues}{
{blues1},
{blues2},
{blues3},
{blues4},
{blues5},
}
And now I am struggling to get the cycle list name=colorbrewer-blues
to be passed to the Axis
. So this is the TeX code :
\begin{document}
\begin{tikzpicture}
\begin{axis}[
cycle list name=colorbrewer-blues,
no markers,
every axis plot/.append style=thick]
\addplot {rnd*.5-.25};
\addplot {rnd*.5-0.5};
\addplot {rnd*.5-0.75};
\addplot{rnd*.5-1};
\addplot+[orange,very thick]{rnd*.5+x*0.05-0.75};
\end{axis}
\end{tikzpicture}
\end{document}
and my non-working code:
@pgf GroupPlot(
{ group_style = { group_size="2 by 1" },
no_markers,
legend_pos="north west",
xlabel=raw"$\delta$ [deg]",
cycle=raw"list name=colorbrewer-blues",
},
Axis(
PlotInc(Table(zenith.Ύ, zenith.λ ./ maximum(zenith.λ))),
LegendEntry(raw"zenith scan")
),
Axis(
PlotInc(Table(azimuth.Ύ, azimuth.λ ./ maximum(azimuth.λ))),
LegendEntry(raw"azimuth scan"),
)
)
PGFPlots of course complains about the bad syntax with
! Package pgfkeys Error: I do not know the key â/pgfplots/cycleâ, to which you
passed âlist name=colorbrewer-bluesâ, and I am going to ignore it. Perhaps you
misspelled it.
Can anyone help? I am still new to both PGFPlotsX.jl and PGFPlots in general, so sorry for this dumb question, I am sure I still did not grasp how both talk to each other