tikzpicture addplot table erzeugt Missing \endscape
Verfasst: Do 18. Sep 2014, 15:15
Hallo Zusammen!
Eigentlich arbeite ich schon recht lange mit Latex. Ich nutze den Textniccenter 2.02 mit mikTex 2.9.
Ich habe dutzende Graphen in meiner Arbeit. Aber 5 erzeugen je 8 Fehler. Zu den fehlerfreien Graphen sehe ich aber keinen Unterschied.
Die Fehler lauten:
Das Ergebnis ist trotz aller Fehler genau so, wie ich es haben will. Ich will sie trotzdem nicht haben. Wenn ständig 40 Fehler und mehr erzeugt werden, bekommt man relevante Fehler nicht mehr mit.
Hier das Minimalbeispiel, dass hoffentlich Richtig ist. Wenn nicht wäre es nett mich darüber aufzuklären.
Das erste Diagrammm erzeugt die Fehler, das zweite ist Fehlerfrei. Ich habe keinen blassen Schimmer warum. Teilweise sind mehr Spalten in den Tabellen als benötigt. Das ist so, weil ich die mal brauche und mal nicht.
Eigentlich arbeite ich schon recht lange mit Latex. Ich nutze den Textniccenter 2.02 mit mikTex 2.9.
Ich habe dutzende Graphen in meiner Arbeit. Aber 5 erzeugen je 8 Fehler. Zu den fehlerfreien Graphen sehe ich aber keinen Unterschied.
Die Fehler lauten:
! Missing /endcsname inserted. <to be read agein> \protect ! Extra \endcsname. ! Missing \endcsname ! Extra }, or forgotten \endgroup ! Extra \endcsname. ! Missing \endcsname inserted. ! Extra }, or forgotten \endgroup ! Extra \endcsname.
Hier das Minimalbeispiel, dass hoffentlich Richtig ist. Wenn nicht wäre es nett mich darüber aufzuklären.
Das erste Diagrammm erzeugt die Fehler, das zweite ist Fehlerfrei. Ich habe keinen blassen Schimmer warum. Teilweise sind mehr Spalten in den Tabellen als benötigt. Das ist so, weil ich die mal brauche und mal nicht.
\documentclass[oneside, index=totoc, listof=totoc, bibliography=totoc ]{scrbook} \usepackage[german]{babel} \usepackage[utf8]{inputenc} \usepackage[right=2cm, left=3cm, top=2.5cm, bottom=2cm]{geometry} \usepackage{tikz} %% Graphen \usepackage{pgfplots} %% Graphen \usepackage{graphicx} %%Zum Laden von Grafiken \pgfplotsset{/pgf/number format/use comma, compat=newest, /pgfplots/colormap={grayred}{rgb255(0cm)=(50,50,50) rgb255(5cm)=(255,0,0)}} \begin{document} %%%%%%%%%%%%%%%%%% % % Erzeugt Fehler: % %%%%%%%%%%%%%%%%%% \begin{figure}[h!] \centering \begin{tikzpicture} \begin{axis}[ width=0.8\textwidth, xlabel={Ablösewinkel $^\circ$}, ylabel={Partikeldurchmesser \textmu m}, ymin=100, grid=major, enlargelimits=true, legend entries={auf Glas, auf Transparent, auf Kiefer}, colormap/hot, point meta min={0}, point meta max={100} ] \addplot+[ only marks, point meta=explicit, scatter, mark size=4pt, black, mark=*, mark options={fill=black, draw=black}, error bars/.cd, x dir=both, x explicit, y dir=both, y explicit ] table[x index=3, y index=1, y error=ABW, meta =Anteil] { Nr Min ABW Winkel Anteil H:G A 152.625 4.596194078 10 0 0.173648178 B 143.3 13.0690474 25 2.087794433 0.5 C 142.4984322 24.9462338 45 15.28207985 0.707106781 D 145.5917407 25.05934774 55 49.51775209 0.819152044 E 149.7884973 25.17939853 70 34.46744228 0.939692621 F 162.0542541 27.8479545 90 5.274862302 1 }; \addplot+[ only marks, point meta=explicit, scatter, mark size=4pt, black, mark=square*, mark options={fill=black, draw=black}, error bars/.cd, x dir=both, x explicit, y dir=both, y explicit ] table[x index=3, y index=1, y error=ABW, meta =Anteil] { Nr Min ABW Winkel Anteil H:G A 148.3333333 13.83714807 10 1.774216115 0.173648178 B NaN NaN 20 0.571452333 NaN C 138.4351852 24.40067269 35 0.184746064 0.514286797 D 141.3787695 29.41170955 50 49.44079858 0.766044443 E 141.7307934 28.58970974 70 42.16317837 0.939692621 F 140.2667735 27.73676927 90 2.278765689 1 G 143.6021964 24.71442968 91 3.58684284 0.999847695 }; \addplot+[ only marks, point meta=explicit, scatter, mark size=4pt, black, mark=triangle*, mark options={fill=black, draw=black}, error bars/.cd, x dir=both, x explicit, y dir=both, y explicit ] table[x index=0, y index=1, y error=ABW, meta =Anteil] { Winkel Größe ABW Masse Anteil 10 0 0 -0.000206667 -1.737695488 20 0 0 -0.000343333 -1.791570595 35 0 0 -0.00086 -3.421792638 50 149.8062609 28.59778769 0.009546667 27.88889217 70 150.7539683 38.1161941 0.015486667 55.25457744 90 152.0542522 29.27306221 0.001263333 5.561316406 100 143.1302723 25.54188908 0.006403333 18.24627271 }; \end{axis} \end{tikzpicture} \caption{Glaskörner Gesamtübersicht 80-150 \textmu m}\label{fig:SE_GK_Gs} \end{figure} %%%%%%%%%%%%%%%%%% % % Funktioniert Fehlerfrei: % %%%%%%%%%%%%%%%%%% \begin{figure}[h] \begin{tikzpicture} \begin{axis}[width=0.9\textwidth, xlabel={Ablösewinkel $^\circ$}, ylabel={Partikeldurchmesser um}, ymax=200, grid=major, enlargelimits=upper,legend entries={auf Papier,auf Transparent},colormap/hot, point meta min={0}, point meta max={100}] \addplot+[only marks,point meta=explicit,scatter,mark size=4pt,black, mark=square*,mark options={fill=black, draw=black}, error bars/.cd, x dir=both, x explicit, y dir=both, y explicit, error bars/.cd ] table[x index=4, y index=1, meta =Anteil, y error=ABW] {Nr Min ABW Anteil Winkel H:G A 147.5319118 32.03508508 -2.236292604 10 0.173648178 B 146.3394223 33.41555223 -0.511922403 20 0.342020143 C 151.8208062 33.49534108 69.25097669 35 0.573576436 D 144.0295402 29.64564864 23.39350667 50 0.766044443 E 146.9518547 32.08348711 8.224437559 70 0.939692621 F 148.1979365 26.97687549 0.195338812 90 1 G 131.3524205 37.85476633 1.683955274 91 0.999847695 }; \addplot+[only marks,point meta=explicit,scatter,mark size=4pt,black, mark=*,mark options={fill=black, draw=black}, error bars/.cd, x dir=both, x explicit, y dir=both, y explicit, ] table[x index=4, y index=1, meta =Anteil, y error=ABW] {Nr Min ABW Anteil Winkel H:G A 288 29.14332399 -1.225021055 10 0.173648178 B 157.8988095 23.80627886 -1.194395529 20 0.342020143 C 149.0965191 27.30405099 72.07717633 35 0.573576436 D 149.4401786 26.30640058 17.04310543 50 0.766044443 E 155.3484664 32.25127957 10.32845877 70 0.939692621 F 157.9236111 31.66350465 -0.566572238 90 1 G 146.7934973 32.47961087 3.537248296 91 0.999847695 }; \end{axis} \end{tikzpicture} \caption{Silizium 90-200 um}\label{fig:SE_SI_Gs} \end{figure} \end{document} % Ende des Dokumentes