Minor changes to colorscheme example
This commit is contained in:
parent
45224e1d3b
commit
db20f9c5d6
@ -18,7 +18,6 @@
|
||||
|
||||
|
||||
\input{common.tex}
|
||||
\pgfplotsset{colorscheme/cel}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
@ -26,61 +25,77 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
|
||||
\title{Colorschemes}
|
||||
\author{}
|
||||
\date{}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
|
||||
\foreach \x in {cel, rocket, viridis, mako, cividis, matplotlib}{
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Set colorscheme
|
||||
|
||||
\foreach \x in {cel, rocket, viridis, mako, cividis}{
|
||||
\pgfplotsset{colorscheme/\x}
|
||||
|
||||
\colorbox{gray!30}{\texttt{colorscheme/\x}}
|
||||
\begin{figure}[H]
|
||||
\centering
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Preview colorscheme
|
||||
|
||||
\tikzstyle{colornode} = [draw, inner sep=0pt, minimum width=1cm, minimum height=0.5cm]
|
||||
\pgfplotsset{scaled y ticks=false}
|
||||
\noindent\begin{minipage}{\textwidth}
|
||||
\colorbox{gray!30}{\texttt{colorscheme/\x}}
|
||||
\begin{figure}[H]
|
||||
\centering
|
||||
|
||||
\begin{subfigure}[c]{0.45\textwidth}
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
domain=0:10,
|
||||
view={0}{90},
|
||||
yticklabel=\empty,xticklabel=\empty,
|
||||
width=\textwidth,
|
||||
height=0.75\textwidth,
|
||||
]
|
||||
\addplot3+[surf]
|
||||
{x + y};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{subfigure}%
|
||||
\begin{subfigure}[c]{0.45\textwidth}
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
domain=0:10,
|
||||
ymin=-1e4,ymax=1,
|
||||
legend pos=south west,
|
||||
yticklabel=\empty,xticklabel=\empty,
|
||||
width=\textwidth,
|
||||
height=0.75\textwidth,
|
||||
]
|
||||
\foreach \i in {1,2,4,8}{
|
||||
\addplot+ [mark=none, line width=1pt]
|
||||
{-\i*exp(x)};
|
||||
%\expandafter\addlegendentry\expandafter{$e^{-\text{\i} x}$}
|
||||
\addlegendentryexpanded{$e^{-\i x}$}
|
||||
}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{subfigure}%
|
||||
\begin{subfigure}[c]{0.1\textwidth}
|
||||
\begin{tikzpicture}
|
||||
\node[colornode, fill=scol3] (color3) {};
|
||||
\node[colornode, fill=scol2, above=1mm of color3] (color2) {};
|
||||
\node[colornode, fill=scol1, above=1mm of color2] (color1) {};
|
||||
\node[colornode, fill=scol0, above=1mm of color1] (color0) {};
|
||||
\end{tikzpicture}
|
||||
\end{subfigure}%
|
||||
\end{figure}
|
||||
\tikzstyle{colornode} = [draw, inner sep=0pt, minimum width=1cm, minimum height=0.5cm]
|
||||
\pgfplotsset{scaled y ticks=false}
|
||||
|
||||
\begin{subfigure}[c]{0.45\textwidth}
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
domain=0:10,
|
||||
view={0}{90},
|
||||
yticklabel=\empty,xticklabel=\empty,
|
||||
width=\textwidth,
|
||||
height=0.75\textwidth,
|
||||
]
|
||||
\addplot3+[surf]
|
||||
{x + y};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{subfigure}%
|
||||
\begin{subfigure}[c]{0.45\textwidth}
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
domain=0:10,
|
||||
ymin=-1e4,ymax=1,
|
||||
legend pos=south west,
|
||||
yticklabel=\empty,xticklabel=\empty,
|
||||
width=\textwidth,
|
||||
height=0.75\textwidth,
|
||||
]
|
||||
\foreach \i in {1,2,4,8}{
|
||||
\addplot+ [mark=none, line width=1pt]
|
||||
{-\i*exp(x)};
|
||||
%\expandafter\addlegendentry\expandafter{$e^{-\text{\i} x}$}
|
||||
\addlegendentryexpanded{$e^{-\i x}$}
|
||||
}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{subfigure}%
|
||||
\begin{subfigure}[c]{0.1\textwidth}
|
||||
\begin{tikzpicture}
|
||||
\node[colornode, fill=scol3] (color3) {};
|
||||
\node[colornode, fill=scol2, above=1mm of color3] (color2) {};
|
||||
\node[colornode, fill=scol1, above=1mm of color2] (color1) {};
|
||||
\node[colornode, fill=scol0, above=1mm of color1] (color0) {};
|
||||
\end{tikzpicture}
|
||||
\end{subfigure}%
|
||||
\end{figure}
|
||||
\vspace{\parskip}
|
||||
\end{minipage}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user