Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:gnuplot

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
linux:gnuplot [2015/12/04 02:57] movelinux:gnuplot [2019/06/06 14:35] (aktuell) move
Zeile 9: Zeile 9:
 ==== Stapelverarbeitung ==== ==== Stapelverarbeitung ====
  
-> gnuplot -persist test.plt +> gnuplot -persist [[scripte:test.plt|test.plt]] 
  
 oder besser oder besser
  
-> gnuplot test.plt - +> gnuplot [[scripte:test.plt|test.plt]] 
  
 ==== Diagramm mit den Daten aus einer Datei ==== ==== Diagramm mit den Daten aus einer Datei ====
Zeile 31: Zeile 31:
 set format x '%B' set format x '%B'
  
-plot 'force.dat' using 1:2 title 'Regelm. Beratungen' with lines lw 2 dt 2, 'force.dat' using 1:3 title 'Ausserplanm. Beratungen' with lines lw 2 dt 3, 'force.dat' using 1:4 title 'E-Mail-Beratungen' with lines lw 2 dt 4 lt 7, 'force.dat' using 1:5 title 'Gesamt' with lines lw lt 8+set yrange [0:9] 
 + 
 +plot 'force.dat' using 1:2 title 'Regelm. Beratungen' with linespoints lw 2 dt 2, 'force.dat' using 1:3 title 'Ausserplanm. Beratungen' with linespoints lw 2 dt 3, 'force.dat' using 1:4 title 'E-Mail-Beratungen' with linespoints lw 2 dt 4 lt 7, 'force.dat' using 1:5 title 'Gesamt' with linespoints lw lt 8
 </code> </code>
  
 {{:linux:monatsdata.png?800}} {{:linux:monatsdata.png?800}}
 +
 +==== Barchart ====
 +Beispieldaten: [[data:branchen.dat|branchen.dat]]
 +
 +<code>
 +set title 'Gewerkschaftliche Beratung Statistik 2015 - Branchen'
 +
 +set grid ytics lt 0 lw 1 lc rgb '#bbbbbb'
 +set grid xtics lt 0 lw 1 lc rgb '#bbbbbb'
 +
 +set ylabel 'Anzahl Beratungen je Branche'
 +set xlabel 'Branchen'
 +
 +set boxwidth 0.75
 +set style fill solid
 +
 +set yrange [0:*]
 +
 +plot "branchen.dat" using 2:xtic(1) title 'Branchen der Ratsuchenden' with boxes
 +</code>
 +
 +{{:linux:branchen.png?600}}
 +
 +==== Barchart ====
 +Beispieldaten: [[data:monatsdata-gesamt.dat|monatsdata-gesamt.dat]]
 +
 +<code>
 +set title 'Gewerkschaftliche Beratung Statistik 2015 - Beratungen Gesamt'
 +
 +# Make the x axis labels easier to read.
 +set xtics rotate out
 +# Select histogram data
 +set style data histogram
 +# Give the bars a plain fill pattern, and draw a solid line around them.
 +set style fill solid border
 +
 +set grid ytics lt 0 lw 1 lc rgb '#bbbbbb'
 +set grid xtics lt 0 lw 1 lc rgb '#bbbbbb'
 +
 +set ylabel 'Anzahl Beratungsarten'
 +
 +set style histogram rowstacked
 +set boxwidth 0.6 relative
 +plot for [COL=2:4] 'force-gesamt.dat' using COL:xticlabels(1) title columnheader
 +</code>
 +
 +{{:linux:monatsdata-gesamt.png?400}}
 +
 +==== Barchart ====
 +Beispieldaten: [[data:monatsdata-gesamt.dat|monatsdata-gesamt-monat.dat]]
 +
 +<code>
 +set title 'Gewerkschaftliche Beratung Statistik 2015 - Beratungen Monate 2015'
 +
 +# Make the x axis labels easier to read.
 +set xtics rotate out
 +# Select histogram data
 +set style data histogram
 +# Give the bars a plain fill pattern, and draw a solid line around them.
 +set style fill solid border
 +
 +set grid ytics lt 0 lw 1 lc rgb '#bbbbbb'
 +set grid xtics lt 0 lw 1 lc rgb '#bbbbbb'
 +
 +set ylabel 'Anzahl Beratungsarten'
 +set xlabel 'Monate 2015'
 +
 +set style histogram rowstacked
 +set boxwidth 0.6 relative
 +plot for [COL=2:4] 'force-gesamt-monat.dat' using COL:xticlabels(1) title columnheader
 +</code>
 +
 +{{:linux:monatsdata-gesamt-monat.png?600}}
  
 ===== Weblinks ===== ===== Weblinks =====
   * http://gnuplot.sourceforge.net   * http://gnuplot.sourceforge.net
   * https://wiki.ubuntuusers.de/Gnuplot   * https://wiki.ubuntuusers.de/Gnuplot
 +  * [[http://www.gnuplot.info/docs_4.0/gpcard.pdf|Quickreference]]
 ==== Tutorials ==== ==== Tutorials ====
  
Zeile 45: Zeile 120:
   * [[https://ho2e.de/wallabag/index.php?view=view&id=173|Creating bar charts with gnuplot]]   * [[https://ho2e.de/wallabag/index.php?view=view&id=173|Creating bar charts with gnuplot]]
   * [[https://ho2e.de/wallabag/index.php?view=view&id=174|Adding gridlines to GNUPlot]]   * [[https://ho2e.de/wallabag/index.php?view=view&id=174|Adding gridlines to GNUPlot]]
 +  * [[https://ho2e.de/wallabag/index.php?view=view&id=175|gnuplot Histograms]]
 +  * [[http://ask.xmodulo.com/rotate-x-axis-labels-gnuplot.html|How to rotate x-axis labels on Gnuplot]]
linux/gnuplot.1449197830.txt.gz · Zuletzt geändert: (Externe Bearbeitung)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki