maliang.mpl.main¶
字数 197 个 代码 42 行 阅读时间 1 分钟 访问量
APIs for Matplotlib
🟢FigureCanvas
¶
class
public
| Canvas
FigureCanvasTkAgg
matplotlib
master
: parent widgetfigure
: aFigure
object frommatplotlib
🟡_fix_size
¶
method
protected
🟡destroy
¶
method
public
🟡theme
¶
method
public
theme
: the theme name
🟢FigureToolbar
¶
class
public
| NavigationToolbar2Tk
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
🟡destroy
¶
method
public
🟡theme
¶
method
public
theme
: the theme name
🔵_forward_methods
¶
function
protected
src_obj
: the source object, that is, the forwarded objecttgt_obj
: the target object, that is, the object to be forwarded
🔵set_mpl_default_theme
¶
function
public
matplotlib
. theme
: theme modeapply_font
: whether to use the font ofmaliang