von kassio » Do 28. Jan 2021, 16:10
Das ist nun wirklich nicht so, dass ich hier jemanden ausnutzen möchte.
Ich schreibe gerade an meiner Diplomarbeit und brauche einfach dringend Hilfe und nicht noch mehr Zeug, dass ich lesen will wie ich einen Beitrag schreibe.
Ich würde ja einfach meinen Übungscode reinstellen, der funktioniert, aber dafür auch ungekürzt ist.
Keine Ahnung, ob das dann besser ist?
\begin{filecontents}{CB02_01.txt}
Depth XX YY Max-WertXX Min-WertXX Max-WertYY Min-WertYY MaxAx MinAx MaxAy MinAy
0.025 -19.75666667 65.03333333 -0.47 -39.5 90.4 22.8 -19.29 -19.74 25.37 42.23
0.05 -42.33333333 0.206666667 -23.5 -54.5 31.6 -29.1 -18.83 -12.17 31.39 29.31
0.1 -66.83333333 -35.63333333 -51.8 -74.4 -24.6 -47.6 -15.03 -7.57 11.03 11.97
0.15 -196 -139.6666667 -185 -204 -117 -159 -11.00 -8.00 22.67 19.33
0.2 -332 -247.6666667 -304 -350 -199 -286 -28.00 -18.00 48.67 38.33
0.25 -357.3333333 -267.6666667 -309 -385 -210 -312 -48.33 -27.67 57.67 21.00
0.3 -355.6666667 -274 -355 -356 -253 -301 -0.67 -0.33 21.00 27.00
0.4 -335.6666667 -264 -327 -345 -245 -287 -8.67 -9.33 19.00 23.00
0.5 -343 -279.3333333 -334 -351 -261 -305 -9.00 -8.00 18.33 25.67
0.6 -318.3333333 -269.6666667 -309 -330 -245 -301 -9.33 -11.67 24.67 31.33
0.7 -316 -266.6666667 -281 -336 -266 -268 -35.00 -20.00 0.67 1.33
0.8 -295 -253.6666667 -272 -313 -217 -293 -23.00 -18.00 36.67 39.33
0.9 -278.3333333 -242.6666667 -250 -294 -237 -247 -28.33 -15.67 5.67 4.33
1 -257.6666667 -223 -239 -273 -215 -236 -18.67 -15.33 8.00 13.00
\end{filecontents}
\documentclass[11pt,a4paper,twoside,BCOR=3cm,headsepline, openright, numbers=noenddot, bibliography=totoc]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage{lmodern}
\usepackage{setspace}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{siunitx}
\usepackage[german,plain]{fancyref}
\usepackage{natbib}
\usepackage[osf]{libertine}
\usepackage{microtype}
\usepackage[colorlinks=false,pdfborder={0 0 0},bookmarksnumbered]{hyperref} % colorlinks -> keine farbigen Links; pdfborder -> keine Rahmenboxen um links; bookmarksnumbered -> im PDF haben alle Kapitel eine Nummer im Inhaltsverzeichnis am Rand
\usepackage{chemformula}
\usepackage[version=3]{mhchem}
\usepackage{xfrac}
\usepackage{colortbl}
\usepackage{tikz}
\usepackage{graphicx} %% für Graphikeneinbindungen
%%\usepackage{float} %% für Abbildungen
%für Tabellen
\usepackage{booktabs}
\usepackage{array}
\usepackage{ragged2e}
%%\usepackage{caption, booktaps} %%für schönere Tabellenlinien
%%\usepackage{longtable} %% für mehrseitige Tabellen
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{figure}[hbtp]
\centering
\begin{tikzpicture}
\begin{axis}[
title=\SI{3}{\joule},
xlabel={Tiefe [\si{\mm}]},
ylabel={Eigenspannungen [\si{\MPa}]},
legend columns=1,
legend entries={$\si{\sigma}x$,$\si{\sigma}y$},
legend style={anchor=north east},
]
\addplot table{CB02_01.txt}; %erster Graph mit SigmaX-Werten
\addplot+ [
error bars/.cd,
y dir=plus, y explicit,
] table[y error plus index=7]{CB02_01.txt};
\addplot + [
error bars/.cd,
y dir=minus, y explicit,
] table[y error minus index=8]{CB02_01.txt};
\addplot [
red,
mark=*,
] table[x index=0, y index=2]{CB02_01.txt};
\addplot+ [
error bars/.cd,
y dir=plus, y explicit,
] table[y error plus index=9]{CB02_01.txt};
\addplot+ [
error bars/.cd,
y dir=plus, y explicit,
] table[y error plus index=10]{CB02_01.txt};
\end{axis}
\end{tikzpicture}
\caption{erste Versuche mit \SI{3}{\joule}, overlap 2}
\label{fig:cb02_01}
\end{figure}
\end{document}
Das ist nun wirklich nicht so, dass ich hier jemanden ausnutzen möchte.
Ich schreibe gerade an meiner Diplomarbeit und brauche einfach dringend Hilfe und nicht noch mehr Zeug, dass ich lesen will wie ich einen Beitrag schreibe.
Ich würde ja einfach meinen Übungscode reinstellen, der funktioniert, aber dafür auch ungekürzt ist.
Keine Ahnung, ob das dann besser ist?
[code]\begin{filecontents}{CB02_01.txt}
Depth XX YY Max-WertXX Min-WertXX Max-WertYY Min-WertYY MaxAx MinAx MaxAy MinAy
0.025 -19.75666667 65.03333333 -0.47 -39.5 90.4 22.8 -19.29 -19.74 25.37 42.23
0.05 -42.33333333 0.206666667 -23.5 -54.5 31.6 -29.1 -18.83 -12.17 31.39 29.31
0.1 -66.83333333 -35.63333333 -51.8 -74.4 -24.6 -47.6 -15.03 -7.57 11.03 11.97
0.15 -196 -139.6666667 -185 -204 -117 -159 -11.00 -8.00 22.67 19.33
0.2 -332 -247.6666667 -304 -350 -199 -286 -28.00 -18.00 48.67 38.33
0.25 -357.3333333 -267.6666667 -309 -385 -210 -312 -48.33 -27.67 57.67 21.00
0.3 -355.6666667 -274 -355 -356 -253 -301 -0.67 -0.33 21.00 27.00
0.4 -335.6666667 -264 -327 -345 -245 -287 -8.67 -9.33 19.00 23.00
0.5 -343 -279.3333333 -334 -351 -261 -305 -9.00 -8.00 18.33 25.67
0.6 -318.3333333 -269.6666667 -309 -330 -245 -301 -9.33 -11.67 24.67 31.33
0.7 -316 -266.6666667 -281 -336 -266 -268 -35.00 -20.00 0.67 1.33
0.8 -295 -253.6666667 -272 -313 -217 -293 -23.00 -18.00 36.67 39.33
0.9 -278.3333333 -242.6666667 -250 -294 -237 -247 -28.33 -15.67 5.67 4.33
1 -257.6666667 -223 -239 -273 -215 -236 -18.67 -15.33 8.00 13.00
\end{filecontents}
\documentclass[11pt,a4paper,twoside,BCOR=3cm,headsepline, openright, numbers=noenddot, bibliography=totoc]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage{lmodern}
\usepackage{setspace}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{siunitx}
\usepackage[german,plain]{fancyref}
\usepackage{natbib}
\usepackage[osf]{libertine}
\usepackage{microtype}
\usepackage[colorlinks=false,pdfborder={0 0 0},bookmarksnumbered]{hyperref} % colorlinks -> keine farbigen Links; pdfborder -> keine Rahmenboxen um links; bookmarksnumbered -> im PDF haben alle Kapitel eine Nummer im Inhaltsverzeichnis am Rand
\usepackage{chemformula}
\usepackage[version=3]{mhchem}
\usepackage{xfrac}
\usepackage{colortbl}
\usepackage{tikz}
\usepackage{graphicx} %% für Graphikeneinbindungen
%%\usepackage{float} %% für Abbildungen
%für Tabellen
\usepackage{booktabs}
\usepackage{array}
\usepackage{ragged2e}
%%\usepackage{caption, booktaps} %%für schönere Tabellenlinien
%%\usepackage{longtable} %% für mehrseitige Tabellen
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{figure}[hbtp]
\centering
\begin{tikzpicture}
\begin{axis}[
title=\SI{3}{\joule},
xlabel={Tiefe [\si{\mm}]},
ylabel={Eigenspannungen [\si{\MPa}]},
legend columns=1,
legend entries={$\si{\sigma}_x$,$\si{\sigma}_y$},
legend style={anchor=north east},
]
\addplot table{CB02_01.txt}; %erster Graph mit SigmaX-Werten
\addplot+ [
error bars/.cd,
y dir=plus, y explicit,
] table[y error plus index=7]{CB02_01.txt};
\addplot + [
error bars/.cd,
y dir=minus, y explicit,
] table[y error minus index=8]{CB02_01.txt};
\addplot [
red,
mark=*,
] table[x index=0, y index=2]{CB02_01.txt};
\addplot+ [
error bars/.cd,
y dir=plus, y explicit,
] table[y error plus index=9]{CB02_01.txt};
\addplot+ [
error bars/.cd,
y dir=plus, y explicit,
] table[y error plus index=10]{CB02_01.txt};
\end{axis}
\end{tikzpicture}
\caption{erste Versuche mit \SI{3}{\joule}, overlap 2}
\label{fig:cb02_01}
\end{figure}
\end{document}[/code]