From 99de1839c60ff34f9cf795c918122d1af2ad53e8 Mon Sep 17 00:00:00 2001 From: Cedric Date: Sun, 29 Dec 2024 17:29:22 +0000 Subject: [PATCH] Add TikZ temperature plots --- book/plots/fig-temperature-ambient.tex | 28 ++++++++++++++++++++++++++ book/plots/fig-temperature-surface.tex | 28 ++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 book/plots/fig-temperature-ambient.tex create mode 100644 book/plots/fig-temperature-surface.tex diff --git a/book/plots/fig-temperature-ambient.tex b/book/plots/fig-temperature-ambient.tex new file mode 100644 index 0000000..a0124db --- /dev/null +++ b/book/plots/fig-temperature-ambient.tex @@ -0,0 +1,28 @@ +\begin{tikzpicture} + \tikzstyle{every node}+=[font=\normalsize\rmfamily] + \begin{axis}[ + title=Ambient temperatures, + grid=both, + major grid style={line width=.2pt,draw=gray!30}, + axis x line=middle, + axis y line=middle, + xmax=35, xmin=-0.1, + ymax=205, ymin=-0.1, + every axis y label/.style={% + at={(ticklabel cs:0.5)},rotate=90,anchor=near ticklabel}, + every axis x label/.style={% + at={(ticklabel cs:0.5)},anchor=near ticklabel}, + every axis legend/.append style={% + at={(0.9,0.3)}, anchor=south east}, + legend style={draw=none}, + legend cell align={left}, + xlabel=Duration (minutes), ylabel=Temperature (\SI{}{\degree} C) + ] + \addplot [color=redpic,smooth,ultra thick] table {plots/icecube_ambient.table}; + \addplot [color=codeblack,smooth,ultra thick] table {plots/preheated_ambient.table}; + \addplot [color=codeblue,smooth,ultra thick] table {plots/non-preheated_ambient.table}; + \addplot [color=yellowpic,smooth,ultra thick] table {plots/preheated_bottom_ambient.table}; + \addplot [color=pinkpic,smooth,ultra thick] table {plots/spritzing_ambient.table}; + \legend{ice cube, pre-heated, non-preheated, pre-heated bottom, spritzing}; + \end{axis} +\end{tikzpicture} diff --git a/book/plots/fig-temperature-surface.tex b/book/plots/fig-temperature-surface.tex new file mode 100644 index 0000000..00ec6a7 --- /dev/null +++ b/book/plots/fig-temperature-surface.tex @@ -0,0 +1,28 @@ +\begin{tikzpicture} + \tikzstyle{every node}+=[font=\normalsize\rmfamily] + \begin{axis}[ + title=Surface temperatures, + grid=both, + major grid style={line width=.2pt,draw=gray!30}, + axis x line=middle, + axis y line=middle, + xmax=35, xmin=-0.1, + ymax=108, ymin=-0.1, + every axis y label/.style={% + at={(ticklabel cs:0.5)},rotate=90,anchor=near ticklabel}, + every axis x label/.style={% + at={(ticklabel cs:0.5)},anchor=near ticklabel}, + every axis legend/.append style={% + at={(0.9,0.3)}, anchor=south east}, + legend style={draw=none}, + legend cell align={left}, + xlabel=Duration (minutes), ylabel=Temperature (\SI{}{\degree} C) + ] + \addplot [color=redpic,smooth,ultra thick] table {plots/icecube_surface.table}; + \addplot [color=codeblack,smooth,ultra thick] table {plots/preheated_surface.table}; + \addplot [color=codeblue,smooth,ultra thick] table {plots/non-preheated_surface.table}; + \addplot [color=yellowpic,smooth,ultra thick] table {plots/preheated_bottom_surface.table}; + \addplot [color=pinkpic,smooth,ultra thick] table {plots/spritzing_surface.table}; + \legend{ice cube, pre-heated, non-preheated, pre-heated bottom, spritzing}; + \end{axis} +\end{tikzpicture}