Article 503DJ [SOLVED] [gnuplot] Ugly labels

[SOLVED] [gnuplot] Ugly labels

by
gregors
from LinuxQuestions.org on (#503DJ)
Hi there!

Since this question has been left unanswered for a few weeks now (in de.comp.software.graphic) I'm hoping to find someone here who can tell me what I could do to have some nicer labels on the x-axis in http://test.szaktilla.de/plot.pdf

I would like to have those long dates either rotated ~30 CCW or shortened.

Do you know how to achieve that?

TIA

Gregor

The script I'm using so far:
Code:#!/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;

#eofAnd the raw data:
Code:01.04.18, 3555, 27, 27
01.05.18, 3570, 15, 42
01.06.18, 3585, 15, 57
01.07.18, 3622, 37, 94
01.08.18, 3667, 56, 150
01.09.18, 3697, 58, 208
01.10.18, 3725, 28, 236
01.11.18, 3760, 35, 271
01.12.18, 3797, 37, 308
01.01.19, 3841, 44, 352
01.02.19, 3891, 50, 402
01.03.19, 3942, 51, 453
01.04.19, 3982, 40, 493
01.05.19, 4016, 34, 527
01.06.19, 4055, 39, 566
01.07.19, 4110, 55, 621
01.08.19, 4160, 50, 671
02.09.19, 4188, 28, 699
05.11.19, 4269, 81, 780
02.12.19, 4303, 34, 814
04.01.20, 4358, 55, 869
01.02.20, 4402, 44, 913
01.03.20, 4447, 45, 958latest?d=yIl2AUoC8zA latest?i=_UnGBMbHBgM:qAduBdDrDUg:F7zBnMy latest?i=_UnGBMbHBgM:qAduBdDrDUg:V_sGLiP latest?d=qj6IDK7rITs latest?i=_UnGBMbHBgM:qAduBdDrDUg:gIN9vFw_UnGBMbHBgM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments