[Gelöst] LogProxy - Tagesstunden in einem Plot farblich hinterlegen

Begonnen von Dirk070, 18 Juni 2022, 17:28:37

Vorheriges Thema - Nächstes Thema

Dirk070

Hallo zusammen,

aus dem Wiki zu LP habe ich die Darstellung für die Tagesstunden entnommen.

set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set title '<L1>'
set ytics
set y2tics
set grid
set ylabel "Watt"
set y2label "Ladestand"
set y2range [0:100]
set y3range [0:1]

#lp FileLog:EnergieLog:4:S10.battsoc\x3a::
#lp FileLog:EnergieLog:4:S10.homewatt\x3a::
#lp FileLog:EnergieLog:4:S10.Leistung\x3a::
#lp Func:logProxy_Func2Plot($from,$to,'{logProxy_isDay($sec)}',{week=>60*30,day=>60*10,qday=>60})

plot "<IN>" using 1:2 axes x1y2 title 'Akku %' ls l2 lw 1.5 with lines,\
     "<IN>" using 1:2 axes x1y1 title 'Verbrauch' ls l0 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y1 title 'Solarenergie' ls l1fill lw 1 with lines,\
     "<IN>" using 1:2 axes x1y3 title notitle ls l4fill lw 1 with fsteps


Die 2. Y-Achse rechts zeigt nun noch die Skala an, also Werte von 0 bis 1.
Diese würde ich gerne ausblenden, da die 2. Y-Achse nur für die Einfärbung der Tagesstunden notwendig ist.
Klar, ich habe was übersehen, finde aber leider keine Idee hier bei der Suche.

Update: Screenshot angehängt, es geht mir um die Achsenbeschriftung (Skalierung) ganz rechts von 0 bis 1.

Lösung: Attribut nrAxis auf 1,1,1,2

Aus der CommandRef: nrAxis
the number of axis for which space should be reserved on the left and right sides of a plot and optionaly how many axes should realy be used on each side, separated by comma: left,right[,useLeft,useRight]. You can set individual numbers by setting the nrAxis of the SVG. Default is 1,1

Danke Euch vorab und schöne Grüße
Dirk