Skip to content
Snippets Groups Projects
Select Git revision
  • 66e479be42d12418ef0ddf5dffe73a081f17bfdf
  • master default protected
  • typos
  • development protected
  • ReadMe_Typos
  • example
  • feat/autocomplete-vscode
  • v3.3
  • v3.2
  • v3.1
  • v3.0
  • v2.2
  • v2.1
  • v2.0
  • old-example
  • v1.5
  • v1.4
  • v1.3
  • v1.0
  • v1.1
  • v1.2
21 results

test.tex

Blame
  • examplePlot.tex 1.14 KiB
    \documentclass{HsH-standalone}
    
    
    \usepackage{siunitx} % SI units
    \usepackage{pgfplots} % plots und bilder, includes tikz and graphix
    \usepackage{pgfplotstable} % fo ruse of tables, csv files are tables
    
    \begin{document} %----------------------Content---------------------------------------------------%
    
    \begin{tikzpicture}
    	\begin{axis}[MyPlots] % use custom styling
    		\addplot[FM1,domain=-1:1, name path=A]{x^2};
    		\addplot[FM2,mark=none,domain=-1:1, name path=B]{0.5*x^2-1};
    		\addplot[pattern color=gray!40, pattern=dots] fill between[of=A and B];
    	\end{axis}
    \end{tikzpicture}
    
    \begin{tikzpicture}
    	\pgfplotstableread{../../data/csv/bsp.csv}\data % read file into macro
    	\begin{axis}[
    			MyPlots, % custom styling
    			xlabel=X Achse,
    			ylabel=$\percent$,
    		]
    		\addplot[FM1,errBars] table [x=A,y=C,y error=D] {\data};
    			\addlegendentry{Messdaten}
    		\addplot[FM2,smooth] table [x=A,y=C] {\data};
    			\addlegendentry{theroretische Werte}
    		\addplot[FM4] table [x=A,y={create col/linear regression={y=C}}] {\data};
    			\addlegendentry{lineariesiert zu: $y=\num\pgfplotstableregressiona*x+\num\pgfplotstableregressionb$}
    	\end{axis}
    \end{tikzpicture}
    
    \end{document}