donkirkby/live-py-plugin

Add LiveFigureDiffer

Aperta

#760 aperta il 18 feb 2026

 (0 commenti) (0 reazioni) (0 assegnatari)Python (63 fork)auto 404
enhancementhelp wanted

Metriche repository

Star
 (302 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

We have LiveImageDiffer for comparing images and LiveFigure for displaying Matplotlib figures in live coding mode. Derive LiveFigureDiffer as a subclass, and override create_painters() to create two figures. Make sure it gracefully degrades when Matplotlib is not available.

Make LiveImageDiffer work with LiveImage, and convert them to LivePainter when needed. Add create_figures() method to LiveFigureDiffer to help with type checking.

Another option is to make LiveImageDiffer a generic class that can compare any subtype of LiveImage.

Guida contributor