ich habe aktuell ein paar Probleme mit der neusten Version von PGFPlots (v1.12 - 31.01.2015). Verschiedene Plots wurden mit matlab2tikz erzeugt und minimal nachbearbeitet. Danach traten Probleme auf wenn Plots mit der Option forget plot erstellt werden sollten. Version 1.11 vom 04.08.2014 lieferte dagegen das gewünschte Ergebnis. Zum Erzeugen wurde LuaLatex verwendet.
Zum Beispiel sollte folgendes Beispiel
% This file was created by matlab2tikz. % Minimal pgfplots version: 1.3 % %The latest updates can be retrieved from % http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz %where you can also make suggestions and rate matlab2tikz. % \documentclass[tikz]{standalone} \listfiles \usepackage{pgfplots} % \usepackage{grffile} \pgfplotsset{compat=newest} % \usetizklibrary{plotmarks} \usepackage{amsmath} \begin{document} \definecolor{blue}{rgb}{0.0, 0.0, 1.0}% blue \definecolor{ao(english)}{rgb}{0.0, 0.5, 0.0}% green \definecolor{bostonuniversityred}{rgb}{0.8, 0.0, 0.0}% red \definecolor{amber}{rgb}{1.0, 0.75, 0.0}% dark yellow % \begin{tikzpicture} \begin{axis}[% width=12cm, height=8cm, scale only axis, xmin=0, xmax=18, xtick={0,2,4,6,8,10,12,14,16,18}, ymin=0, ymax=0.4, y tick label style={ /pgf/number format/.cd, fixed, fixed zerofill, precision=2, /tikz/.cd }, axis line style = thick, legend style={at={(1.03,1)},anchor=north west,legend cell align=left,align=left,draw=white!15!black,legend columns=1} ] \addplot[color=blue, solid,thick, mark=*,mark options={solid},mark size=2.0917pt] plot table[row sep=crcr,]{% 2 0.0941152\\ 3 0.200814\\ 4 0.19623\\ 5 0.206956\\ 6 0.18398\\ 7 0.176222\\ 8 0.0947806\\ 9 0.133975\\ 10 0.0395739\\ 11 0.066859\\ 12 0.116134\\ 13 0.120998\\ 14 0.125021\\ 15 0.112165\\ 16 0.101876\\ 17 0.0783926\\ }; \addplot[color=bostonuniversityred, solid,thick, mark=*,mark options={solid},mark size=2.0917pt] plot table[row sep=crcr,]{% 2 0.0936391\\ 3 0.199815\\ 4 0.195075\\ 5 0.206026\\ 6 0.183016\\ 7 0.175301\\ 8 0.0940376\\ 9 0.132913\\ 10 0.0397875\\ 11 0.0670514\\ 12 0.114963\\ 13 0.118968\\ 14 0.123114\\ 15 0.111573\\ 16 0.101311\\ 17 0.0779413\\ }; \addplot[color=ao(english), solid, thick, mark=*,mark options={solid},mark size=2.0917pt] plot table[row sep=crcr,]{% 2 0.131881\\ 3 0.294087\\ 4 0.308461\\ 5 0.34155\\ 6 0.33067\\ 7 0.320657\\ 8 0.204179\\ 9 0.296716\\ 10 0.0846471\\ 11 0.176743\\ 12 0.279834\\ 13 0.290271\\ 14 0.293139\\ 15 0.260116\\ 16 0.233099\\ 17 0.167355\\ }; \addplot[color=amber, solid, thick, mark=*,mark options={solid},mark size=2.0917pt] plot table[row sep=crcr,]{% 2 0.126721\\ 3 0.292859\\ 4 0.307705\\ 5 0.342034\\ 6 0.331323\\ 7 0.320352\\ 8 0.203623\\ 9 0.299258\\ 10 0.0862787\\ 11 0.179899\\ 12 0.282922\\ 13 0.293101\\ 14 0.297074\\ 15 0.263895\\ 16 0.236169\\ 17 0.170282\\ }; \addplot[only marks,mark=+,mark options={solid},thick, mark size=2.0917pt,draw=black,fill=black] plot table[row sep=crcr,]{% 2 0.08\\ 3 0.18\\ 4 0.185\\ 5 0.195\\ 6 0.17\\ 7 0.157\\ 8 0.125\\ 9 0.115\\ 10 0.025\\ 11 0.06\\ 12 0.105\\ 13 0.11\\ 14 0.1\\ 15 0.1\\ 16 0.09\\ 17 0.07\\ }; \addplot[only marks,mark=+,mark options={solid},thick, mark size=2.0917pt,draw=black,fill=black, forget plot] plot table[row sep=crcr,]{% 2 0.125\\ 3 0.18\\ 4 0.185\\ 5 0.195\\ 6 0.17\\ 7 0.157\\ 8 0.125\\ 9 0.115\\ 10 0.025\\ 11 0.06\\ 12 0.105\\ 13 0.11\\ 14 0.1\\ 15 0.1\\ 16 0.09\\ 17 0.07\\ }; \addplot[only marks,mark=asterisk,mark options={solid},thick, mark size=2.0917pt,draw=black,fill=black] plot table[row sep=crcr,]{% 2 0.1\\ 3 0.315\\ 4 0.32\\ 5 0.355\\ 6 0.355\\ 7 0.325\\ 8 0.26\\ 9 0.205\\ 10 0.065\\ 11 0.17\\ 12 0.25\\ 13 0.26\\ 14 0.245\\ 15 0.23\\ 16 0.215\\ 17 0.15\\ }; \addplot[only marks,mark=asterisk,mark options={solid},thick, mark size=2.0917pt,draw=black,fill=black] plot table[row sep=crcr,]{% 2 0.2\\ 3 0.315\\ 4 0.32\\ 5 0.355\\ 6 0.355\\ 7 0.325\\ 8 0.26\\ 9 0.205\\ 10 0.065\\ 11 0.17\\ 12 0.25\\ 13 0.26\\ 14 0.245\\ 15 0.23\\ 16 0.215\\ 17 0.15\\ }; % \end{axis} \end{tikzpicture}% \end{document}
Auch mit zwei anderen Diagrammen hatte ich Probleme. Da deren Code aufgrund der Datenpunktmenge aber sehr umfangreich ist, lade ich die Dateien nur hoch statt per Code-Befehl in den Beitrag einzubinden. Zusätzlich musste ich sie in einen ZIP-Ordner packen, da das Forum mir beim Upload der .tex-Files sagte, diese seien leer.
In area_all_systems_TEST werden die Referenzlinien (schwarze, durchgezogene Gerade) nicht korrekt geplottet. Statt dass die Gerade, die durch
\addplot [color=black,solid,line width=3,forget plot] % \addplot [color=black,solid,line width=2] table[row sep=crcr]{% 0 64.3\\ 200 64.3\\ };
Die zweite Datei area_all_systems_long_TEST enthält das gleiche System wie die vorherige Datei - nur mit viel mehr Messwerten - und zeigt das gleiche Problem mit der Referenzlinie. Zusätzlich wird aber nur ein sehr kleiner Teil des Graphens geplottet, nämlich der Abschnitt zwischen x = 190 ... 200 und nur für einen der 4 vorhandenen Plots.
Hat jemand eine Idee woran das liegt und falls es nur ein Versionsbug sein sollte, wie man dieses Problem am besten an Christian Feuersänger heranträgt?
Vielen Dank und beste Grüße
Stephan
P.s.: Die übrigen Dateien folgen wegen der Limitierungen hier im Forum in einem zweiten Post.