maliang.mpl¶
字数 11 个 阅读时间不到 1 分钟 访问量
Extension package of maliang for matplotlib
Provides:
- Implemented an easy-to-use
matplotlibinterface totkinter - Themed drawing experience
- Good interaction with
matplotlibplottings
模块:
类:
-
FigureCanvas–A canvas for interface of
matplotlib -
FigureToolbar–An interface class for the matplotlib navigation cursor
函数:
-
set_mpl_default_theme–Set default color constants of
matplotlib.
FigureCanvas ¶
FigureCanvas(master: tkinter.Misc, figure: matplotlib.figure.Figure, *args, **kwargs)
FigureToolbar ¶
FigureToolbar(
master: tkinter.Misc | FigureCanvas,
figure_canvas: FigureCanvas | None = None,
*,
pack_toolbar: bool = True,
**kwargs
)
Bases: matplotlib.backends._backend_tk.NavigationToolbar2Tk
An interface class for the matplotlib navigation cursor
master: parent widgetfigure_canvas: the figure canvas on which to operatepack_toolbar: if True, add the toolbar to the parent’s pack manager’s packing list during initialization withside="bottom"andfill="x".
If you want to use the toolbar with a different layout manager, use pack_toolbar=False
方法:
-
theme–Change the color theme of the Toolbar.