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