From 89804562202e47497c6baf7e4847398648511292 Mon Sep 17 00:00:00 2001 From: Jan Wille <jan.wille@stud.hs-hannover.de> Date: Sat, 13 Mar 2021 15:37:47 +0100 Subject: [PATCH] better comments --- crc/exampleCircuit.tex | 8 ++++---- plt/examplePlot.tex | 22 ++++++++++++---------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/crc/exampleCircuit.tex b/crc/exampleCircuit.tex index 2aee0c9..ba50c2c 100644 --- a/crc/exampleCircuit.tex +++ b/crc/exampleCircuit.tex @@ -1,10 +1,10 @@ \documentclass[11pt,ngerman]{HsH-standalone} -\usepackage{siunitx} % kennt SI einheiten -\usepackage{amsmath} % schöne Formeln -\usepackage{circuitikz} % zeichnen von Schaltplänen +\usepackage{siunitx} % SI units +\usepackage{amsmath} % nice formulas +\usepackage{circuitikz} % draw circuit diagramms, uses tikz -\begin{document} %----------------------Inhalt---------------------------------------------------% +\begin{document} %----------------------Content---------------------------------------------------% \begin{circuitikz} \draw (0,0) to[V, v<=$U_q$, i=$I_q$] ++(0,2) diff --git a/plt/examplePlot.tex b/plt/examplePlot.tex index 9a8adbe..351ae22 100644 --- a/plt/examplePlot.tex +++ b/plt/examplePlot.tex @@ -1,16 +1,16 @@ \documentclass[11pt,ngerman]{HsH-standalone} -%__________Formeln und Mathe________________ -\usepackage{siunitx} % kennt SI einheiten -\usepackage{amsmath} % schöne Formeln -%__________Daten Import_____________________ -\usepackage{pgfplots,pgfplotstable} % plots und bilder, enthält tikz und graphix +\usepackage{siunitx} % SI units +\usepackage{amsmath} % nice formulas -\begin{document} %----------------------Inhalt---------------------------------------------------% +\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] + \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]; @@ -18,9 +18,11 @@ \end{tikzpicture} \begin{tikzpicture} -\pgfplotstableread{../csv/bsp.csv}\data - \begin{axis}[MyPlots, - xlabel=X Achse, ylabel=$\percent$, + \pgfplotstableread{../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} -- GitLab