Anlehnend an die Frage https://texwelt.de/wissen/fragen/23001/was-sind-bekannte-probleme-bei-tikz ein eigener Faden für pgfplots-Probleme.

Was ist denn bekannt, so dass man als Nutzer von pgfplots darauf acht geben kann, und welche Lösungsmöglichkeiten oder Workarounds gibt es jeweils?

Bemerkenswert ist auch die Seite https://sourceforge.net/p/pgfplots/bugs/

Dieser Frage ist "Community Wiki" markiert.

gefragt 23 Sep '18, 11:34

cis's gravatar image

cis
9.5k74452491
Akzeptiert-Rate: 29%

bearbeitet 23 Sep '18, 19:25


Hier https://texwelt.de/wissen/fragen/22945/pgfplots-patch-pgfplotstable-datentabellen-aus-dem-code-auslagern

und hier https://texwelt.de/wissen/fragen/22953/pgfplots-table-plot-inlinetable-mit-textspalte-plotten-und-beschriften

trat das Problem 'visualization depends on=value \thisrow' does not work for loaded tables auf, das ist https://sourceforge.net/p/pgfplots/bugs/193/

Dort heißt es:

This is a follow-up to https://sourceforge.net/p/pgfplots/bugs/109/ :

The following minimal shows that the first plot works whereas the second merely produces garbage:

Öffne in Overleaf
\documentclass[10pt,a4paper]{report}
\usepackage{pgfplots}
\pgfplotsset{compat=1.13}
\usepackage{pgfplotstable}
\begin{document}
\pgfplotstableread[col sep=space]{
x y w1 w2
1 1 2 A
2 2 1 B
3 3 4 C
4 4 3 D
}\data

\pgfplotstablesave{\data}{pgfplotstempout.dat}

\begin{tikzpicture}
\begin{axis}[]
\addplot[
    scatter,
    only marks,
    scatter src=explicit,
    visualization depends on=value \thisrow{w2}\as\wtwo,
    nodes near coords=\wtwo,
]
table[x=x,y=y,meta=w1]{pgfplotstempout.dat};
\end{axis}
\end{tikzpicture}

\begin{tikzpicture}
\begin{axis}[]
\addplot[
    scatter,
    only marks,
    scatter src=explicit,
    visualization depends on=value \thisrow{w2}\as\wtwo,
    nodes near coords=\wtwo,
]
table[x=x,y=y,meta=w1]{\data}; %error
\end{axis}
\end{tikzpicture}

\end{document}
Permanenter link
Dieser Antwort ist "Community Wiki" markiert.

beantwortet 23 Sep '18, 11:38

cis's gravatar image

cis
9.5k74452491
Akzeptiert-Rate: 29%

bearbeitet 23 Sep '18, 11:44

Deine Antwort
Vorschau umschalten

Folgen dieser Frage

Per E-Mail:

Wenn sie sich anmelden, kommen Sie für alle Updates hier in Frage

Per RSS:

Antworten

Antworten und Kommentare

Markdown-Grundlagen

  • *kursiv* oder _kursiv_
  • **Fett** oder __Fett__
  • Link:[Text](http://url.com/ "Titel")
  • Bild?![alt Text](/path/img.jpg "Titel")
  • nummerierte Liste: 1. Foo 2. Bar
  • zum Hinzufügen ein Zeilenumbruchs fügen Sie einfach zwei Leerzeichen an die Stelle an der die neue Linie sein soll.
  • grundlegende HTML-Tags werden ebenfalls unterstützt

Frage-Themen:

×296
×117

gestellte Frage: 23 Sep '18, 11:34

Frage wurde gesehen: 4,950 Mal

zuletzt geändert: 23 Sep '18, 11:44