From 4e43bc36a95e9f14b926af3b9664ee76a71ce164 Mon Sep 17 00:00:00 2001 From: Jan Wille <jan.wille@stud.hs-hannover.de> Date: Thu, 27 Jun 2024 19:44:32 +0200 Subject: [PATCH] pgf: use proper key names --- img/plt/examplePlot.pdf | 4 ++-- img/plt/examplePlot.tex | 9 +++++++++ src/HsH-classes.cfg | 6 +++--- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/img/plt/examplePlot.pdf b/img/plt/examplePlot.pdf index b005933..a4a9fbf 100644 --- a/img/plt/examplePlot.pdf +++ b/img/plt/examplePlot.pdf @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:693092ea50209f025f9fca061e98e89e3dc5f0e83750358d56165a2412c6f3da -size 152618 +oid sha256:e29d2878eefd44480fd889cbe44e64618fcc90a7506f1e8db86375740350527d +size 155726 diff --git a/img/plt/examplePlot.tex b/img/plt/examplePlot.tex index 797219b..a4fb6bb 100644 --- a/img/plt/examplePlot.tex +++ b/img/plt/examplePlot.tex @@ -31,4 +31,13 @@ \end{axis} \end{tikzpicture} +\begin{tikzpicture} + \begin{axis}[ + MyPlots, % custom styling + enlarge x limits=false, + ] + \addplot[domain=-1:1,samples=200] {1/x}; + \end{axis} +\end{tikzpicture} + \end{document} diff --git a/src/HsH-classes.cfg b/src/HsH-classes.cfg index 90d9e5f..a8c77fa 100644 --- a/src/HsH-classes.cfg +++ b/src/HsH-classes.cfg @@ -59,12 +59,12 @@ \pgfplotsset{ compat=1.16, /pgf/number format/read comma as period, - every tick label/.append style={font=\tiny}, - every axis legend/.append style={font=\footnotesize}, + tick label style={font=\tiny}, + legend style={font=\footnotesize}, MyPlots/.style = { % Style for all plots width=.6\textwidth, grid=major, - grid style={dashed,gray!50}, + grid style={loosely dotted,gray!50}, legend pos=outer north east, FM1/.style = {blue, thick, mark=x, mark size=1.5,samples=100}, % Format 1 FM2/.style = {orange, thick, mark=*, mark size=1,samples=100}, % Format 2 -- GitLab