Balkendiagramm mit Gnuplot erstellen
Verfasst: Mo 17. Nov 2014, 11:46
Hallo Leute
ich hab ein Problem Gnuplot in mein Latex Dokument einzubinden.
Ich habe Mactex, Texmaker und Gnuplot installiert. Wenn ich nun ein Balkendiagramm erstellen möchte werden nur die ersten 3 Balken angezeigt.
Ich denke ich habe shell-escape in der Konfiguration von Texmaker richtig eingebunden.
Gruß M!ch!
%Praambel
%Beispiel
%Werte in Test.txt
ich hab ein Problem Gnuplot in mein Latex Dokument einzubinden.
Ich habe Mactex, Texmaker und Gnuplot installiert. Wenn ich nun ein Balkendiagramm erstellen möchte werden nur die ersten 3 Balken angezeigt.
Ich denke ich habe shell-escape in der Konfiguration von Texmaker richtig eingebunden.
Gruß M!ch!
%Praambel
\usepackage[shell]{gnuplottex} \usepackage{pgfplots} \usepackage{latexsym} \usepackage{keyval} \usepackage{ifthen} \usepackage{moreverb} \usepackage{epstopdf}
\begin{figure} \begin{gnuplot}[terminal=pdf] set style data histogram set style histogram cluster gap 1 set style fill solid border -1 set boxwidth 0.9 set title "Balkendiagramm" set xrange [-1:6.5] set yrange [0:30] set xlabel "x-Achse" set ylabel "y-Achse" set grid plot 'Test.txt' using 2:xtic(1) title "Spalte3" lc rgb "green", 'Test.txt' using 3 title "Spalte3" lc rgb "red", 'Test.txt' using 4 title "Spalte4" lc rgb "yellow" \end{gnuplot} \end{figure}
1 7 13 19 2 8 14 20 3 9 15 21 4 10 16 22 5 11 17 23 6 12 18 24