Ich musste die Beschriftung der x-Achse wegen Schönheitsfehlern manuell einstellen. Da Latex mir die Skalierung automatisch logarithmisch umgestellt hat. Soweit so gut, alles zurechtgestutzt.
Allerdings taucht bei dem Plot trotzdem ein "10^2" in der Nähe meiner Caption auf (siehe plot.png). Ich hab so einen Fehler nicht googlen können und bitte deswegen um Hilfe.
Falls nötig, hänge ich auch meine Daten als .txt an. Eingebunden sind sie allerdings als .csv
Allerdings kriege ich es nicht hin, Dateien anzuhängen
Ich benütze texlive und TexnicCenter 2.02 stable (64bit)
Minimalbeispiel:
\documentclass{scrreprt} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage{pgfkeys} \usepackage{xcolor} \definecolor{myColor00}{HTML}{40699C} \definecolor{myColor01}{HTML}{9E413E} \definecolor{myColor02}{HTML}{7F9A48} \definecolor{myColor03}{HTML}{664E83} \pgfplotscreateplotcyclelist{color list}% {myColor00,myColor01,myColor02,myColor03,myColor04,myColor05,myColor06,myColor07,myColor08,myColor09,myColor10,myColor11,myColor12} \pgfplotscreateplotcyclelist{color list filled}% {{myColor00, style={fill=myColor00}},{myColor01, style={fill=myColor01}},{myColor02, style={fill=myColor02}},{myColor03, style={fill=myColor03}},{myColor04, style={fill=myColor04}},{myColor05, style={fill=myColor05}},{myColor06, style={fill=myColor06}},{myColor07, style={fill=myColor07}},{myColor08, style={fill=myColor08}},{myColor09, style={fill=myColor09}},{myColor10, style={fill=myColor10}},{myColor11, style={fill=myColor11}},{myColor12, style={fill=myColor12}}} \pgfplotscreateplotcyclelist{color marker list}{% {myColor00, mark=o},{myColor01, mark=o},{myColor02, mark=o},{myColor03, mark=o},{myColor04, mark=o},{myColor05, mark=o},{myColor06, mark=o},{myColor07, mark=o},{myColor08, mark=o},{myColor09, mark=o},{myColor10, mark=o},{myColor11, mark=o},{myColor12, mark=o}} \usepackage[caption=false]{subfig} \usepackage[countmax]{subfloat} \begin{document} \begin{figure} \centering \subfloat[][Auskragung $A$~=~200~mm]{ \begin{tikzpicture}[trim axis left] \begin{axis}[ font=\small, /pgf/number format/.cd, xtick={-0.04,-0.02,0,0.02,0.04}, xticklabels={$-0.04$,$-0.02$,$0$,$0.02$,$0.04$}, fixed, use comma, label style={font=\small}, y label style={at={(axis description cs:-0.095,.5)},anchor=south}, yticklabel pos=left, width=0.51\textwidth, cycle list name=color list, xmin=-0.053, xmax=0.06, ymin=-95, ymax=95, xlabel=Verformungsweg $x$ {[mm]}, ylabel=Kraft $F$ {[N]}, legend style={ {font=\scriptsize}, cells={anchor=west}, legend pos=south west } ] \addplot[forget plot, color=black, very thin] coordinates { (-0.053,0) (0.06,0) }; \addplot[forget plot, color=black, very thin] coordinates { (0,-95) (0,95) }; \addplot+[forget plot, color=myColor00, smooth] table [col sep=tab,trim cells=true,x index=1,y index=0] {bilder/statischXY200mm.csv}; \addplot+[forget plot, color=myColor01, smooth] table [col sep=tab,trim cells=true,x index=3,y index=2] {bilder/statischXY200mm.csv}; \addplot+[forget plot, color=myColor02, smooth] table [col sep=tab,trim cells=true,x index=5,y index=4] {bilder/statischXY200mm.csv}; \addplot+[smooth, color=myColor03, densely dashdotdotted] table [col sep=tab,trim cells=true,x index=7,y index=6] {bilder/statischXY200mm.csv}; \addlegendentry{Mittelwert} \end{axis} \end{tikzpicture} } \subfloat[][Auskragung $A$~=~295~mm]{ \begin{tikzpicture}[trim axis right] \begin{axis}[ font=\small, /pgf/number format/.cd, xtick={-0.05,0,0.05}, xticklabels={$-0.05$,$0$,$0.05$}, fixed, use comma, label style={font=\small}, yticklabel pos=right, y label style={at={(axis description cs:1.195,.5)},anchor=south}, width=0.51\textwidth, cycle list name=color list, xmin=-0.096, xmax=0.13, ymin=-80, ymax=80, xlabel=Verformungsweg $x$ {[mm]}, ylabel=Kraft $F$ {[N]}, legend style={ {font=\scriptsize}, cells={anchor=west}, legend pos=south west } ] \addplot[forget plot, color=black, very thin] coordinates { (-0.096,0) (0.13,0) }; \addplot[forget plot, color=black, very thin] coordinates { (0,-80) (0,80) }; \addplot+[forget plot, color=myColor00, smooth] table [col sep=tab,trim cells=true,x index=1,y index=0] {bilder/statischXY295mm.csv}; \addplot+[forget plot, color=myColor01, smooth] table [col sep=tab,trim cells=true,x index=3,y index=2] {bilder/statischXY295mm.csv}; \addplot+[forget plot, color=myColor02, smooth] table [col sep=tab,trim cells=true,x index=5,y index=4] {bilder/statischXY295mm.csv}; \addplot+[smooth, color=myColor03, densely dashdotdotted] table [col sep=tab,trim cells=true,x index=7,y index=6] {bilder/statischXY295mm.csv}; \addlegendentry{Mittelwert} \end{axis} \end{tikzpicture} } \caption{Lineare Steifigkeitsmessung aller Positionen in $\pm~xy$-Richtung} \label{fig:statischXY} \end{figure} \end{document}
Über schnelle Hilfe wäre ich sehr dankbar.
[img]Desktop/plot.png[/img]