Files
littlefs/scripts
Christopher Haster 526ab0148a scripts: plot[mpl].py: Merge legend labels if they would be identical
This tweaks how we build legends in plot.py and plotmpl.py to merge
legend labels if they would end up identical (same label, same color,
same format, char, linechar, etc).

Identical labels are confusing anyways, so we might as well minimize the
size of the legend when this happens.

---

Though the real motivation for this is to simplify legend labels that
span multiple subplots. Before, you had to awkwardly glob out subplot
labels you didn't want repeated in the legend:

  ./scripts/plot.py test.csv \
      -L3,readed=lfs3 \
      -L3,progged= \
      -L3,erased= \
      -L2,readed=lfs2 \
      -L2,progged= \
      -L2,erased=

But now you can specify them willy-nilly, and in the final legend any
redundant labels will be automatically merged:

  ./scripts/plot.py test.csv \
      -L3=lfs3 \
      -L2=lfs2
2026-03-09 22:57:12 -05:00
..
2025-04-16 15:23:06 -05:00