tkintertools.mpl.main¶
字数 183 个 代码 42 行 阅读时间 1 分钟 访问量
APIs for Matplotlib
🟢FigureCanvas
¶
class
public
| Canvas
FigureCanvasTkAgg
matplotlib
master
: parent widgetfigure
: aFigure
object frommatplotlib
🟡_fix_size
¶
method
protected
🟡_theme
¶
method
protected
🟡destroy
¶
method
public
🟢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"
.
TIPS:
If you want to use the toolbar with a different layout manager, use pack_toolbar=False
🟡_theme
¶
method
protected
🟡destroy
¶
method
public
🔵_forward_methods
¶
function
protected
Forward methods and attributes of one object to another object
source_object
: the source object, that is, the forwarded objecttarget_object
: the target object, that is, the object to be forwarded
🔵set_mpl_default_theme
¶
function
public
Set default color constants of matplotlib
theme
: theme modeapply_font
: whether to use the font oftkintertools