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.

贡献者指南