I want to use a different color map than “hot”. When I try to use the “viridis” color map, I get an error.
It isn’t clear to me why it should be so, since the latex code matches what I can find in the PGF manual.
@pgf ax = Axis({
view = (0, 90),
height = "11cm",
width = "14cm",
xlabel = "Frequency",
ylabel = "Angle",
grid="major",
colormap_name="hot",
enlargelimits = false
},
Plot3({surf,shader="interp",samples=1,patch_type="rectangle"}, Table(frequencies, phis, scatp))
)
This works when color map is “hot”, but fails with
julia> include("acousticcolor.jl")! Missing number, treated as zero.
<to be read again>\pgfpl@cm@viridis@size
l.4562 \end{axis}
ERROR: LoadError: The latex command `lualatex julia0jx0Ch.tex` failed
...
The generated latex code reads:
\begin{axis}[view={0}{90}, height={11cm}, width={14cm}, xlabel={Frequency}, ylabel={Angle}, grid={major}, colormap name={viridis}, enlargelimits={false}]
\addplot3[surf, shader={interp}, samples={1}, patch type={rectangle}]
table[row sep={\\}]
...
Any hints will be appreciated.