1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
%\RequirePackage{luatex85}
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\input{palette.tex}
\usepgfplotslibrary{colormaps}
\pgfplotsset{colormap={mypa}%
{ color(0cm)=(white); color(1cm)=(myblue); color(2cm)=(myred)}}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
view={0}{90}, % not needed for `matrix plot*' variant
xlabel=$q_x$,
ylabel=Energy,
colormap name = mypa,
colorbar,
colorbar style={
title= ,
yticklabel style={
/pgf/number format/.cd,
fixed,
precision=1,
fixed zerofill,
},
},
title= ,
enlargelimits=false,
axis on top,
]
\addplot [matrix plot*,point meta=explicit] table [meta index = {2}] {outSpectrum1.pgfplots};
\end{axis}
\end{tikzpicture}
\end{document}
|