Skip to content
Snippets Groups Projects
Commit 154c876e authored by Jannik Dunkelau's avatar Jannik Dunkelau
Browse files

Change barplot colours to account for colour blindness

parent 7e18bb11
No related branches found
No related tags found
No related merge requests found
...@@ -305,7 +305,7 @@ entweder automatisch auf \texttt{hhucolorcycle} oder \texttt{hhubwcycle}. ...@@ -305,7 +305,7 @@ entweder automatisch auf \texttt{hhucolorcycle} oder \texttt{hhubwcycle}.
\addplot coordinates {(A,60) (B, 60)}; \addplot coordinates {(A,60) (B, 60)};
\addplot coordinates {(A,45) (B, 45)}; \addplot coordinates {(A,45) (B, 45)};
\addplot coordinates {(A,30) (B, 30)}; \addplot coordinates {(A,30) (B, 30)};
\legend{blue, red, green, orange, cyan} \legend{blue, orange, green, red, cyan}
\end{axis} \end{axis}
\end{tikzpicture} \end{tikzpicture}
\caption[Bar plot with short version of caption for List of Figures]{% \caption[Bar plot with short version of caption for List of Figures]{%
......
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesClass{hhuthesis}[2023/10/23 HHU Thesis LaTeX document class v1.26] \ProvidesClass{hhuthesis}[2024/02/14 HHU Thesis LaTeX document class v1.27]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % Options fallback. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % Options fallback.
\ProcessOptions\relax \ProcessOptions\relax
...@@ -67,17 +67,18 @@ ...@@ -67,17 +67,18 @@
\RequirePackage{tikz} \RequirePackage{tikz}
\RequirePackage{pgf,pgfplots} \RequirePackage{pgf,pgfplots}
\usetikzlibrary{patterns}
%% Setup of colour cylce lists for pgfplots %% Setup of colour cylce lists for pgfplots
\pgfplotscreateplotcyclelist{hhucolorcycle}{ \pgfplotscreateplotcyclelist{hhucolorcycle}{
solid,hhublue,every mark/.append style={solid},mark=*\\ solid,hhublue,every mark/.append style={solid},mark=*\\
dashed,hhured,every mark/.append style={solid},mark=square*\\ dashed,hhuorange,every mark/.append style={solid},mark=square*\\
dashdotted,hhugreen,every mark/.append style={solid},mark=diamond*\\ dashdotted,hhugreen,every mark/.append style={solid},mark=diamond*\\
dotted,hhuorange,every mark/.append style={solid},mark=triangle*\\ dotted,hhured,every mark/.append style={solid},mark=triangle*\\
densely dashed,hhucyan,every mark/.append style={solid},mark=star\\ densely dashed,hhucyan,every mark/.append style={solid},mark=star\\
loosely dashed,hhublue,every mark/.append style={solid},mark=o\\ loosely dashed,hhublue,every mark/.append style={solid},mark=o\\
loosely dotted,hhured,every mark/.append style={solid},mark=square\\ loosely dotted,hhuorange,every mark/.append style={solid},mark=square\\
densely dashed,hhugreen,every mark/.append style={solid},mark=diamond\\ densely dashed,hhugreen,every mark/.append style={solid},mark=diamond\\
loosely dashdotted,hhuorange,every mark/.append style={solid},mark=triangle\\ loosely dashdotted,hhured,every mark/.append style={solid},mark=triangle\\
densely dotted,hhucyan,every mark/.append style={solid},mark=star\\ densely dotted,hhucyan,every mark/.append style={solid},mark=star\\
} }
\pgfplotscreateplotcyclelist{hhubwcycle}{ % For black/white print \pgfplotscreateplotcyclelist{hhubwcycle}{ % For black/white print
...@@ -95,10 +96,10 @@ ...@@ -95,10 +96,10 @@
%% The same for bar plots %% The same for bar plots
\pgfplotscreateplotcyclelist{hhucolorbars}{ \pgfplotscreateplotcyclelist{hhucolorbars}{
{fill=hhublue!30!white, draw=hhublue, text=hhublue}, {fill=hhublue!30!white, draw=hhublue, text=hhublue},
{fill=hhured!30!white, draw=hhured, text=hhured}, {fill=hhuorange!30!white, draw=hhuorange, text=hhuorange, postaction={pattern=crosshatch dots, pattern color=hhuorange}},
{fill=hhugreen!30!white, draw=hhugreen, text=hhugreen}, {fill=hhugreen!30!white, draw=hhugreen, text=hhugreen, postaction={pattern=north west lines, pattern color=hhugreen}},
{fill=hhuorange!30!white, draw=hhuorange, text=hhuorange}, {fill=hhured!30!white, draw=hhured, text=hhured, postaction={pattern=grid, pattern color=hhured}},
{fill=hhucyan!30!white, draw=hhucyan, text=hhucyan} {fill=hhucyan!30!white, draw=hhucyan, text=hhucyan, postaction={pattern=north east lines, pattern color=hhucyan}}
} }
\pgfplotscreateplotcyclelist{hhubwbars}{ \pgfplotscreateplotcyclelist{hhubwbars}{
{fill=black!75!white, draw=black}, {fill=black!75!white, draw=black},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment