Hallo,
ich möchte, das die Achsenbeschriftung zum Jahreswechsel automatisch wechselt. Die Variante mit %Y funktioniert leider nicht. Gibt es eine Möglichkeit dies zu realisieren?
plot "<IN>" using 1:2 axes x1y2 title '2018' ls l2 lw 1 with lines,\
"<IN>" using 1:2 axes x1y2 title <%Y> ls l0 lw 1 with lines,
Was mir einfaellt: die folgende Funktion in 99_myUtils.pm definieren:
sub year()
{
my @a=localtime();
return 1900+$a[5];
}
und fuers SVG das Attribut plotReplace setzen:
attr mySVG plotReplace %Y={year()}