Farbfehler Text vs. Kurve im SVG-Plot

Begonnen von Prof. Dr. Peter Henning, 09 März 2026, 10:27:28

Vorheriges Thema - Nächstes Thema

Prof. Dr. Peter Henning

Es fiel mir heute morgen erst auf, kann aber auch noch nicht lange so sein: Bei SVG-Plots stimmen die Farben der Legendtexte nicht mehr mit den Farben der Plotkurven überein. Entweder ein Problem im Modul 98_SVG.pm, oder eine der Konfigurationsdateien wurde verändert (nicht von mir).

LG

pah

rudolfkoenig

Die Zuordnung der Farben zu der Beschriftung (www/pgm2/svg_style.css,svg_defs.svg) wurden unlaengst korrigiert (https://forum.fhem.de/index.php?topic=143819.msg1357772#msg1357772), ich habe damals alle Kombinationen einmal durchprobiert.

Ich habe gerade einen kurzen Test gemacht, und sehe keine Probleme.

Fuer eine weitere Analyse brauche ich weitere Angaben wie FHEMWEB style, .gplot Funktion (step,fstep,etc) und verwendete "Farbe" (l1fill,l2fill,etc).

Prof. Dr. Peter Henning

#2
Hi Rudi, "natürlich" verwende ich einen eigenen Style...

Die gplot-Datei für den ersten Plot im Bild ist
# Created by FHEM/98_SVG.pm, 2024-10-04 16:13:51
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 y2tics
set ylabel ""
set y2label "W [kWh]"

#EnergieD 12:nt5000.reading\x3a:0:
#EnergieD 5:PowerFlow.energy_summary_in\x3a:0:
#EnergieD 4:PowerFlow.energy_summary_out\x3a:0:
#EnergieD 4:PowerFlow.battery_SOC\x3a:0:{$fld[3]*10.24/100}
#PlotProxy ConstY:10.24
#EnergieD 4:PowerFlow.energy_summary_in\x3a:0:{-$fld[3]}
#EnergieD 6:PowerFlow.energy_summary_out\x3a:0:
#EnergieD 5:PowerFlow.energy_summary_out\x3a:0:
#EnergieD 6:PowerFlow.energy_summary_in\x3a:0:
#EnergieD 7:PowerFlow.energy_summary_out\x3a:0:

plot "<IN>" using 1:2 axes x1y2 title '<L2>' ls l0 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y2 title '<L3>' ls l3 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y2 title 'Speicher' ls l1 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y2 notitle ls l1 lw 0.5 with lines,\
     "<IN>" using 1:2 axes x1y2 notitle ls l1dot lw 0.5 with lines,\
     "<IN>" using 1:2 axes x1y2 notitle ls l1 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y2 title '<L4>' ls l5 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y2 title '<L5>' ls l4 lw 1.5 with lines,\
     "<IN>" using 1:2 axes x1y2 title '<L6>' ls l2 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y2 title '<L7>' ls l7fill_stripe lw 1 with lines
Schlussfolgerung also: irgendwo in meinem eigenen Style sind die Farben jetzt anders, als in Deinen geänderten.
Allerdings finde ich keine CSS_Datei in meinem System, die jünger als 2025 ist.

Vlt. könntest Du hier kurz schreiben, ob Du außer der 98_SVG.pm noch irgendetwas geändert hast, dann kann ich den Fehler besser suchen.

LG

pah


P.S.: Der Vollständigkeit halber ein paar Daten, um den Plot nachzustellen.
2026-03-09_12:30:18 PowerFlow battery_SOC: 47.3
2026-03-09_12:30:18 PowerFlow energy_summary_in: 0.000 6.447 3.470
2026-03-09_12:30:18 PowerFlow energy_summary_out: 3.342 0.000 6.325 0.022
2026-03-09_12:30:18 PowerFlow power_summary_in: 0.000 2.288 0.000
2026-03-09_12:30:18 PowerFlow power_summary_out: 1.621 0.000 0.634 0.002
2026-03-09_12:30:51 nt5000 reading: 545.2 5.60 3.053 236.0 12.48 2.945 58  702 8.456 6958.0 0.12
2026-03-09_12:31:18 PowerFlow battery_SOC: 47.5
2026-03-09_12:31:18 PowerFlow power_summary_in: 0.000 2.285 0.000
2026-03-09_12:31:28 PowerFlow energy_summary_in: 0.000 6.492 3.470
2026-03-09_12:31:28 PowerFlow energy_summary_out: 3.374 0.000 6.337 0.022
2026-03-09_12:31:28 PowerFlow power_summary_out: 1.644 0.000 0.581 0.012
2026-03-09_12:31:52 nt5000 reading: 545.2 5.60 3.053 236.0 12.48 2.945 58  702 8.505 6958.0 0.12
2026-03-09_12:32:18 PowerFlow battery_SOC: 47.8
2026-03-09_12:32:18 PowerFlow power_summary_in: 0.000 2.268 0.009
2026-03-09_12:32:28 PowerFlow energy_summary_in: 0.000 6.530 3.470
2026-03-09_12:32:28 PowerFlow energy_summary_out: 3.401 0.000 6.347 0.022
2026-03-09_12:32:28 PowerFlow power_summary_out: 1.641 0.000 0.583 0.014
2026-03-09_12:32:52 nt5000 reading: 545.2 5.60 3.053 236.0 12.48 2.945 58  702 8.554 6958.0 0.12
2026-03-09_12:33:18 PowerFlow battery_SOC: 48.1
2026-03-09_12:33:18 PowerFlow power_summary_in: 0.000 2.256 0.002
2026-03-09_12:33:28 PowerFlow energy_summary_in: 0.000 6.568 3.470
2026-03-09_12:33:28 PowerFlow energy_summary_out: 3.429 0.000 6.356 0.022
2026-03-09_12:33:28 PowerFlow power_summary_out: 1.666 0.000 0.544 0.007
2026-03-09_12:33:52 nt5000 reading: 545.2 5.60 3.053 237.0 12.48 2.957 58  702 8.603 6958.0 0.12
2026-03-09_12:34:18 PowerFlow battery_SOC: 48.4
2026-03-09_12:34:18 PowerFlow power_summary_in: 0.000 2.258 0.005
2026-03-09_12:34:28 PowerFlow energy_summary_in: 0.000 6.605 3.470
2026-03-09_12:34:28 PowerFlow energy_summary_out: 3.457 0.000 6.366 0.022
2026-03-09_12:34:28 PowerFlow power_summary_out: 1.655 0.000 0.564 0.005
2026-03-09_12:34:52 nt5000 reading: 545.2 5.60 3.053 236.0 12.36 2.916 58  702 8.653 6958.0 0.12
2026-03-09_12:35:18 PowerFlow battery_SOC: 48.6
2026-03-09_12:35:18 PowerFlow power_summary_in: 0.000 2.256 0.000
2026-03-09_12:35:38 PowerFlow energy_summary_in: 0.000 6.649 3.470
2026-03-09_12:35:38 PowerFlow energy_summary_out: 3.484 0.000 6.377 0.022
2026-03-09_12:35:38 PowerFlow power_summary_out: 1.669 0.000 0.561 0.000
2026-03-09_12:35:52 nt5000 reading: 545.2 5.60 3.053 237.0 12.36 2.929 59  702 8.702 6958.0 0.12
2026-03-09_12:36:18 PowerFlow battery_SOC: 48.9
2026-03-09_12:36:18 PowerFlow power_summary_in: 0.000 2.259 0.004
2026-03-09_12:36:48 PowerFlow energy_summary_in: 0.000 6.693 3.470
2026-03-09_12:36:48 PowerFlow energy_summary_out: 3.516 0.000 6.387 0.022
2026-03-09_12:36:48 PowerFlow power_summary_out: 1.649 0.000 0.545 -0.000
2026-03-09_12:36:52 nt5000 reading: 545.2 5.52 3.009 236.0 12.36 2.916 59  702 8.751 6959.0 0.12
2026-03-09_12:37:18 PowerFlow battery_SOC: 49.2
2026-03-09_12:37:18 PowerFlow power_summary_in: 0.000 2.256 0.000
2026-03-09_12:37:52 nt5000 reading: 545.2 5.52 3.009 236.0 12.36 2.916 59  702 8.800 6959.0 0.12
2026-03-09_12:37:58 PowerFlow energy_summary_in: 0.000 6.737 3.474
2026-03-09_12:37:58 PowerFlow energy_summary_out: 3.548 0.000 6.398 0.025
2026-03-09_12:37:58 PowerFlow power_summary_out: 1.679 0.000 0.550 0.000
2026-03-09_12:38:18 PowerFlow battery_SOC: 49.5
2026-03-09_12:38:18 PowerFlow power_summary_in: 0.000 2.255 0.001
2026-03-09_12:38:52 nt5000 reading: 545.2 5.52 3.009 236.0 12.24 2.888 59  702 8.849 6959.0 0.12
2026-03-09_12:38:58 PowerFlow energy_summary_in: 0.000 6.775 3.474
2026-03-09_12:38:58 PowerFlow energy_summary_out: 3.576 0.000 6.407 0.025
2026-03-09_12:38:58 PowerFlow power_summary_out: 1.576 0.000 0.609 0.000
2026-03-09_12:39:18 PowerFlow battery_SOC: 49.7
2026-03-09_12:39:18 PowerFlow power_summary_in: 0.000 2.256 0.000
2026-03-09_12:39:52 nt5000 reading: 545.2 5.52 3.009 236.0 12.24 2.888 59  702 8.898 6959.0 0.12
2026-03-09_12:39:59 PowerFlow energy_summary_in: 0.000 6.813 3.474
2026-03-09_12:39:59 PowerFlow energy_summary_out: 3.603 0.000 6.417 0.025
2026-03-09_12:39:59 PowerFlow power_summary_out: 1.608 0.000 0.611 0.000
2026-03-09_12:40:20 PowerFlow battery_SOC: 50
2026-03-09_12:40:20 PowerFlow power_summary_in: 0.000 2.255 0.009
2026-03-09_12:40:52 nt5000 reading: 545.2 5.44 2.965 236.0 12.24 2.888 58  696 8.946 6959.0 0.12
2026-03-09_12:41:00 PowerFlow energy_summary_in: 0.000 6.851 3.474
2026-03-09_12:41:00 PowerFlow energy_summary_out: 3.630 0.000 6.428 0.025
2026-03-09_12:41:00 PowerFlow power_summary_out: 1.584 0.000 0.643 0.001
2026-03-09_12:41:20 PowerFlow battery_SOC: 50.3
2026-03-09_12:41:20 PowerFlow power_summary_in: 0.000 2.254 0.000
2026-03-09_12:41:52 nt5000 reading: 545.2 5.52 3.009 236.0 12.24 2.888 58  702 8.995 6959.0 0.12
2026-03-09_12:42:00 PowerFlow energy_summary_in: 0.000 6.889 3.474
2026-03-09_12:42:00 PowerFlow energy_summary_out: 3.656 0.000 6.439 0.025
2026-03-09_12:42:00 PowerFlow power_summary_out: 1.523 0.000 0.673 0.018
2026-03-09_12:42:20 PowerFlow battery_SOC: 50.5
2026-03-09_12:42:20 PowerFlow power_summary_in: 0.000 2.238 0.000
2026-03-09_12:42:52 nt5000 reading: 545.2 5.52 3.009 236.0 12.24 2.888 58  702 9.043 6959.0 0.12
2026-03-09_12:43:10 PowerFlow energy_summary_in: 0.000 6.932 3.474
2026-03-09_12:43:10 PowerFlow energy_summary_out: 3.685 0.000 6.452 0.025
2026-03-09_12:43:10 PowerFlow power_summary_out: 1.511 0.000 0.663 -0.000
2026-03-09_12:43:20 PowerFlow battery_SOC: 50.8
2026-03-09_12:43:20 PowerFlow power_summary_in: 0.000 2.218 0.001
2026-03-09_12:43:53 nt5000 reading: 545.2 5.52 3.009 236.0 12.24 2.888 58  702 9.092 6959.0 0.12
2026-03-09_12:44:10 PowerFlow energy_summary_in: 0.000 6.969 3.474
2026-03-09_12:44:10 PowerFlow energy_summary_out: 3.707 0.000 6.469 0.025
2026-03-09_12:44:10 PowerFlow power_summary_out: 0.451 0.000 2.077 0.000
2026-03-09_12:44:20 PowerFlow battery_SOC: 50.9
2026-03-09_12:44:20 PowerFlow power_summary_in: 0.000 2.219 0.000
2026-03-09_12:44:53 nt5000 reading: 545.2 5.52 3.009 236.0 12.24 2.888 58  702 9.140 6959.0 0.12
2026-03-09_12:45:20 PowerFlow battery_SOC: 51
2026-03-09_12:45:20 PowerFlow energy_summary_in: 0.000 7.012 3.474
2026-03-09_12:45:20 PowerFlow energy_summary_out: 3.719 0.000 6.499 0.025
2026-03-09_12:45:20 PowerFlow power_summary_in: 0.000 2.215 0.000
2026-03-09_12:45:20 PowerFlow power_summary_out: 0.666 0.000 1.503 0.009
2026-03-09_12:45:53 nt5000 reading: 545.2 5.52 3.009 236.0 12.24 2.888 58  702 9.188 6959.0 0.12
2026-03-09_12:46:21 PowerFlow battery_SOC: 51.2
2026-03-09_12:46:21 PowerFlow energy_summary_in: 0.000 7.049 3.474
2026-03-09_12:46:21 PowerFlow energy_summary_out: 3.730 0.000 6.524 0.025
2026-03-09_12:46:21 PowerFlow power_summary_in: 0.000 2.202 0.003
2026-03-09_12:46:21 PowerFlow power_summary_out: 0.717 0.000 1.439 0.000
2026-03-09_12:46:53 nt5000 reading: 545.2 5.44 2.965 236.0 12.24 2.888 58  696 9.237 6959.0 0.12
2026-03-09_12:47:21 PowerFlow battery_SOC: 51.3
2026-03-09_12:47:21 PowerFlow energy_summary_in: 0.000 7.086 3.474
2026-03-09_12:47:21 PowerFlow energy_summary_out: 3.742 0.000 6.548 0.025
2026-03-09_12:47:21 PowerFlow power_summary_in: 0.000 2.211 0.012
2026-03-09_12:47:21 PowerFlow power_summary_out: 0.735 0.000 1.441 0.000
2026-03-09_12:47:53 nt5000 reading: 545.2 5.44 2.965 236.0 12.12 2.860 59  696 9.285 6959.0 0.12
2026-03-09_12:48:21 PowerFlow battery_SOC: 51.4
2026-03-09_12:48:21 PowerFlow energy_summary_in: 0.000 7.123 3.477
2026-03-09_12:48:21 PowerFlow energy_summary_out: 3.755 0.000 6.572 0.026
2026-03-09_12:48:21 PowerFlow power_summary_in: 0.000 2.215 0.000
2026-03-09_12:48:21 PowerFlow power_summary_out: 0.738 0.000 1.411 0.002
2026-03-09_12:48:53 nt5000 reading: 545.2 5.44 2.965 236.0 12.12 2.860 59  696 9.333 6959.0 0.12
2026-03-09_12:49:21 PowerFlow battery_SOC: 51.6
2026-03-09_12:49:21 PowerFlow energy_summary_in: 0.000 7.160 3.477
2026-03-09_12:49:21 PowerFlow energy_summary_out: 3.768 0.000 6.595 0.026
2026-03-09_12:49:21 PowerFlow power_summary_in: 0.000 2.205 0.013
2026-03-09_12:49:21 PowerFlow power_summary_out: 0.809 0.000 1.365 0.000
2026-03-09_12:49:53 nt5000 reading: 545.2 5.44 2.965 235.0 12.12 2.848 59  696 9.382 6959.0 0.12
2026-03-09_12:50:21 PowerFlow battery_SOC: 51.7
2026-03-09_12:50:21 PowerFlow energy_summary_in: 0.000 7.196 3.477
2026-03-09_12:50:21 PowerFlow energy_summary_out: 3.782 0.000 6.617 0.026
2026-03-09_12:50:21 PowerFlow power_summary_in: 0.000 2.239 0.000
2026-03-09_12:50:21 PowerFlow power_summary_out: 0.882 0.000 1.305 0.000
2026-03-09_12:50:53 nt5000 reading: 545.2 5.44 2.965 236.0 12.12 2.860 58  690 9.430 6959.0 0.12
2026-03-09_12:51:21 PowerFlow battery_SOC: 51.8
2026-03-09_12:51:21 PowerFlow power_summary_in: 0.000 2.233 0.000
2026-03-09_12:51:31 PowerFlow energy_summary_in: 0.000 7.240 3.477
2026-03-09_12:51:31 PowerFlow energy_summary_out: 3.799 0.000 6.643 0.026
2026-03-09_12:51:31 PowerFlow power_summary_out: 0.868 0.000 1.288 0.023
2026-03-09_12:51:53 nt5000 reading: 545.2 5.44 2.965 237.0 12.12 2.872 58  690 9.478 6959.0 0.12
2026-03-09_12:52:21 PowerFlow battery_SOC: 52
2026-03-09_12:52:21 PowerFlow power_summary_in: 0.000 2.196 0.013
2026-03-09_12:52:41 PowerFlow energy_summary_in: 0.000 7.283 3.478
2026-03-09_12:52:41 PowerFlow energy_summary_out: 3.814 0.000 6.669 0.026
2026-03-09_12:52:41 PowerFlow power_summary_out: 0.683 0.000 1.383 -0.000
2026-03-09_12:52:53 nt5000 reading: 545.2 5.44 2.965 236.0 12.12 2.860 58  690 9.526 6959.0 0.12
2026-03-09_12:53:21 PowerFlow battery_SOC: 52.1
2026-03-09_12:53:21 PowerFlow power_summary_in: 0.000 2.185 0.000
2026-03-09_12:53:41 PowerFlow energy_summary_in: 0.000 7.319 3.478
2026-03-09_12:53:41 PowerFlow energy_summary_out: 3.827 0.000 6.692 0.026
2026-03-09_12:53:41 PowerFlow power_summary_out: 0.802 0.000 1.321 0.000
2026-03-09_12:53:53 nt5000 reading: 545.2 5.44 2.965 236.0 12.12 2.860 58  690 9.575 6959.0 0.12
2026-03-09_12:54:21 PowerFlow battery_SOC: 52.3
2026-03-09_12:54:21 PowerFlow power_summary_in: 0.000 2.184 0.006
2026-03-09_12:54:41 PowerFlow energy_summary_in: 0.000 7.356 3.478
2026-03-09_12:54:41 PowerFlow energy_summary_out: 3.840 0.000 6.715 0.026
2026-03-09_12:54:41 PowerFlow power_summary_out: 0.794 0.000 1.359 0.000
2026-03-09_12:54:54 nt5000 reading: 545.2 5.44 2.965 236.0 12.12 2.860 59  696 9.623 6959.0 0.12
2026-03-09_12:55:21 PowerFlow battery_SOC: 52.4
2026-03-09_12:55:21 PowerFlow power_summary_in: 0.000 2.186 0.000
2026-03-09_12:55:41 PowerFlow energy_summary_in: 0.000 7.392 3.478
2026-03-09_12:55:41 PowerFlow energy_summary_out: 3.853 0.000 6.737 0.026
2026-03-09_12:55:41 PowerFlow power_summary_out: 0.806 0.000 1.344 0.000
2026-03-09_12:55:54 nt5000 reading: 545.2 5.44 2.965 236.0 12.12 2.860 59  690 9.670 6959.0 0.12
2026-03-09_12:56:21 PowerFlow battery_SOC: 52.5
2026-03-09_12:56:21 PowerFlow power_summary_in: 0.000 2.190 0.018
2026-03-09_12:56:41 PowerFlow energy_summary_in: 0.000 7.429 3.478
2026-03-09_12:56:41 PowerFlow energy_summary_out: 3.867 0.000 6.759 0.026
2026-03-09_12:56:41 PowerFlow power_summary_out: 1.734 0.000 0.805 0.000
2026-03-09_12:56:54 nt5000 reading: 545.2 5.44 2.965 236.0 12.12 2.860 60  690 9.718 6959.0 0.12
2026-03-09_12:57:21 PowerFlow battery_SOC: 52.7
2026-03-09_12:57:21 PowerFlow power_summary_in: 0.000 2.187 0.000
2026-03-09_12:57:41 PowerFlow energy_summary_in: 0.000 7.465 3.478
2026-03-09_12:57:41 PowerFlow energy_summary_out: 3.889 0.000 6.772 0.026
2026-03-09_12:57:41 PowerFlow power_summary_out: 0.939 0.000 0.838 0.000
2026-03-09_12:57:54 nt5000 reading: 545.2 5.36 2.922 236.0 12.12 2.860 60  684 9.766 6960.0 0.12
2026-03-09_12:58:21 PowerFlow battery_SOC: 52.9
2026-03-09_12:58:21 PowerFlow power_summary_in: 0.000 2.204 0.005
2026-03-09_12:58:41 PowerFlow energy_summary_in: 0.000 7.502 3.479
2026-03-09_12:58:41 PowerFlow energy_summary_out: 3.912 0.000 6.784 0.027
2026-03-09_12:58:41 PowerFlow power_summary_out: 1.384 0.000 0.720 0.045
2026-03-09_12:58:54 nt5000 reading: 545.2 5.36 2.922 236.0 12.00 2.832 60  684 9.814 6960.0 0.12
2026-03-09_12:59:21 PowerFlow battery_SOC: 53.2
2026-03-09_12:59:21 PowerFlow power_summary_in: 0.000 2.222 0.000
2026-03-09_12:59:41 PowerFlow energy_summary_in: 0.000 7.539 3.479
2026-03-09_12:59:41 PowerFlow energy_summary_out: 3.935 0.000 6.797 0.027
2026-03-09_12:59:41 PowerFlow power_summary_out: 1.404 0.000 0.702 0.098
2026-03-09_12:59:54 nt5000 reading: 545.2 5.36 2.922 236.0 12.00 2.832 59  684 9.862 6960.0 0.12
2026-03-09_13:00:21 PowerFlow battery_SOC: 53.4
2026-03-09_13:00:21 PowerFlow power_summary_in: 0.000 2.220 0.000