GUIBRUSHR.GUI.WIDGET.MyMultiFigure module¶
- class GUIBRUSHR.GUI.WIDGET.MyMultiFigure.MyMultiFigure(figures: List, title: str = 'Figures')[source]¶
Bases:
ToplevelA window that displays a list of matplotlib figures as navigable pages.
Each page is embedded with an interactive NavigationToolbar2Tk (zoom, pan, reset and a Save button that exports the current view). Prev/Next buttons move between pages. This is the interactive counterpart of the static multi-page PDF shown by MyPDFWindow.
- __init__(figures: List, title: str = 'Figures') None[source]¶
Initialize the multi-figure window.
- Parameters:
figures – Ordered list of matplotlib Figures, one per page.
title – The window title.
- classmethod from_pdf(pdf_path: str, title: str = 'Figures') MyMultiFigure | None[source]¶
Build the viewer from the figures pickled next to
pdf_path.- Parameters:
pdf_path – Path of the multi-page PDF whose
.figs.pklholds the pickled figures.title – The window title.
- Returns:
A MyMultiFigure if the pickled figures were found and loaded, else None so the caller can fall back to the static PDF viewer.