Tikz-pgf Quiver mit automatischen Farben

Tabellen und Grafiken erstellen und anordnen


VossiMB
Forum-Newbie
Forum-Newbie
Beiträge: 3
Registriert: Mo 26. Sep 2016, 18:53

Tikz-pgf Quiver mit automatischen Farben

Beitrag von VossiMB »

Hallo meine lieben,

bis heute habe ich meine LaTeX-Probleme in Foren durch reines Lesen lösen können. Vielen Dank dafür!!!

Der folgende Code* beschreibt mein Problem grob (ich habe mehr Daten). Ich möchte, dass die Pfeile eig. eine einheitliche Größe haben und die Farbe der Pfeile in Abhängigkeit Ihres Betrags angepasst werden. Ist das möglich?
 
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}

\pagestyle{empty}

\begin{document}
\begin{tikzpicture}
\begin{axis}[title=Quiver and plot table,colorbar]
    \addplot[blue,
        quiver={u=\thisrow{u},v=\thisrow{v}},
        -stealth] 
	table 
	{
	x y u v
	0 0 1 0
	1 1 1 2
	2 4 1 4
	3 9 1 6
	4 16 1 8
	};
\end{axis}
\end{tikzpicture}
\end{document}
Grüßle
VossiMB

*http://pgfplots.sourceforge.net/gallery.html[/url]