Skip to content
Snippets Groups Projects
Commit 2623585a authored by Jan Wille's avatar Jan Wille
Browse files

Merge branch 'feat/plot-styles' into development

parents 3e21dfd1 4e43bc36
Branches
Tags
No related merge requests found
No preview for this file type
...@@ -31,4 +31,13 @@ ...@@ -31,4 +31,13 @@
\end{axis} \end{axis}
\end{tikzpicture} \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} \end{document}
...@@ -59,12 +59,12 @@ ...@@ -59,12 +59,12 @@
\pgfplotsset{ \pgfplotsset{
compat=1.16, compat=1.16,
/pgf/number format/read comma as period, /pgf/number format/read comma as period,
every tick label/.append style={font=\tiny}, tick label style={font=\tiny},
every axis legend/.append style={font=\footnotesize}, legend style={font=\footnotesize},
MyPlots/.style = { % Style for all plots MyPlots/.style = { % Style for all plots
width=.6\textwidth, width=.6\textwidth,
grid=major, grid=major,
grid style={dashed,gray!50}, grid style={loosely dotted,gray!50},
legend pos=outer north east, legend pos=outer north east,
FM1/.style = {blue, thick, mark=x, mark size=1.5,samples=100}, % Format 1 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 FM2/.style = {orange, thick, mark=*, mark size=1,samples=100}, % Format 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment