Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

18 Sep '18, 19:56

cis's gravatar image

cis
9.5k100460491

pgfplots (table plot): inlinetable mit Textspalte plotten und beschriften

**Geschlossen: Ich glaube, das geht nicht. https://sourceforge.net/p/pgfplots/bugs/193/** [![alt text][1]][1] Ich habe für einen table plot eine `inlintable` \pgfplotstableread[ row sep=\\, col sep=comma, trim cells ] { x , y , a , b , Text \\ 5 , 8 , 1 , 2 , A \\ 17 , 2 , 3 , 3 , B \\ 49 , 7 , 1 , 4 , C \\ }\Test Seit ich eine Spalte `Text` ergänzt habe, kann ich nicht mehr visualization depends on={value \thisrowno{3} \as \text}, visualization depends on={value \thisrowno{4} \as \Text}, nodes near coords={\text, \Text} verwenden, also nicht den Spalteninhalt anzeigen lassen. **Was muss ich da einstellen?** *Hinweis: `col sep=comma` habe ich nur versuchsweise ergänzt; am liebsten hätte ich hier kein blödes Komma drin.* \documentclass[margin=5mm, tikz]{standalone} \usepackage{pgfplots} %\usepackage{pgfplotstable} \pgfplotsset{compat=1.13} \begin{document} \pgfplotstableread[ row sep=\\, col sep=comma, trim cells ] { x , y , a , b , Text \\ 5 , 8 , 1 , 2 , A \\ 17 , 2 , 3 , 3 , B \\ 49 , 7 , 1 , 4 , C \\ }\Test \begin{tikzpicture} \begin{axis}[] \addplot+[ visualization depends on={value \thisrowno{3} \as \text}, visualization depends on={value \thisrowno{4} \as \Text}, nodes near coords={text, Text}, ] table[ %x=x,y=y x index=0, y index=3, %row sep=\\, col sep=comma, trim cells % scheints nicht benötigt ] {\Test}; \end{axis} \end{tikzpicture} \end{document} [1]: https://texwelt.de/wissen/upfiles/55555555_209.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

18 Sep '18, 18:32

cis's gravatar image

cis
9.5k100460491

pgfplots (table plot): inlinetable mit Textspalte plotten und beschriften

[![alt text][1]][1] Ich habe für einen table plot eine `inlintable` \pgfplotstableread[ row sep=\\, col sep=comma, trim cells ] { x , y , a , b , Text \\ 5 , 8 , 1 , 2 , A \\ 17 , 2 , 3 , 3 , B \\ 49 , 7 , 1 , 4 , C \\ }\Test Seit ich eine Spalte `Text` ergänzt habe, kann ich nicht mehr visualization depends on={value \thisrowno{3} \as \text}, visualization depends on={value \thisrowno{4} \as \Text}, nodes near coords={\text, \Text} verwenden, also nicht den Spalteninhalt anzeigen lassen. **Was muss ich da einstellen?** *Hinweis: `col sep=comma` habe ich nur versuchsweise ergänzt; am liebsten hätte ich hier kein blödes Komma drin.* \documentclass[margin=5mm, tikz]{standalone} \usepackage{pgfplots} %\usepackage{pgfplotstable} \pgfplotsset{compat=1.13} \begin{document} \pgfplotstableread[ row sep=\\, col sep=comma, trim cells ] { x , y , a , b , Text \\ 5 , 8 , 1 , 2 , A \\ 17 , 2 , 3 , 3 , B \\ 49 , 7 , 1 , 4 , C \\ }\Test \begin{tikzpicture} \begin{axis}[] \addplot+[ visualization depends on={value \thisrowno{3} \as \text}, visualization depends on={value \thisrowno{4} \as \Text}, nodes near coords={text, Text}, ] table[ %x=x,y=y x index=0, y index=3, %row sep=\\, col sep=comma, trim cells % scheints nicht benötigt ] {\Test}; \end{axis} \end{tikzpicture} \end{document} [1]: https://texwelt.de/wissen/upfiles/55555555_209.png

Willkommen, erstes Mal hier? Schau mal unter FAQ!

×