donkirkby/live-py-plugin

Add LiveFigureDiffer

開放

#760 建立於 2026年2月18日

 (0 則留言) (0 個反應) (0 位負責人)Python (63 個分叉)auto 404
enhancementhelp wanted

倉庫指標

星標
 (302 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南