Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Gnuplot] Beschriftungsproblem

0 views
Skip to first unread message

Gregor Szaktilla

unread,
Feb 21, 2020, 10:56:31 PM2/21/20
to
Hallo allerseits!

Da meine Frage nun seit gut zwei Wochen in d.c.s.graphik steht und noch
niemand geantwortet hat, probiere ich es noch einmal hier.

Ich spiele ein bisschen mit Gnuplot. Dabei habe ich das Problem, dass
die Beschriftung der x-Achse unschön ist. Siehe
<http://test.szaktilla.de/plot.pdf>

Wie kann ich die Beschriftung entweder drehen - oder so formatieren,
dass statt dem vollständigen Datum nur Monat und Jahr angezeigt werden?

In den Beispielen unter <http://gnuplot.sourceforge.net/demo/> habe ich
zwar gesehen, dass man das mit Text innerhalb eines Diagramms machen
kann, habe jedoch nicht herausgefunden, wie man das mit der
Achsenbeschriftung macht.

TIA

Gregor

PS: Das verwendete Gnuplot-Script:

---------------------------------------
#!/usr/bin/gnuplot

FN = "/home/gszaktilla/.stromlog/log.txt"

set terminal postscript
set output "/tmp/plot.ps"

set xlabel "Datum"
set title FN

set timefmt "%d.%m.%y"
set xdata time

set grid

set ylabel "Zaehlerstand [kWh]"
plot FN using 1:2 notitle with lines lt 1;

set ylabel "Monatl. Verbrauch [kWh]"
set yrange [0:200]
plot FN using 1:3 notitle with lines lt 1;

#eof
---------------------------------------

0 new messages