matplotlib¶
Useful tkinter functions that use matplotlib
CustomToolbar
¶
Bases: NavigationToolbar2Tk
Customised version of matplotlib toolbar with added popout and copy functions
Source code in mmg_toolbox/tkguis/misc/matplotlib.py
copy_button()
¶
Copy figure to clipboard - doesn't currently work
Source code in mmg_toolbox/tkguis/misc/matplotlib.py
popout_figure()
¶
Create a new tk window and display figure
Source code in mmg_toolbox/tkguis/misc/matplotlib.py
add_rectangle(ax, left, bottom, width, height)
¶
Add rectangle to axes
Source code in mmg_toolbox/tkguis/misc/matplotlib.py
ini_image(frame, figure_size=None, figure_dpi=None)
¶
Create an image plot on a tk canvas with toolbar
Source code in mmg_toolbox/tkguis/misc/matplotlib.py
ini_plot(frame, figure_size=None, figure_dpi=None)
¶
Create a lineplot on a tk canvas with toolbar