October 8, 2021

Python - a simple GUI using both tkinter and matplotlib

We have a trivial tkinter GUI that presents the user with a file open dialog. So why not take that file and try to plot it using matplotlib? Combining these two will be an important building block in the final application. There are some tricks involved. The way to do this is to specify a matplotlib "back end". It turns out this isn't terribly hard, what you do essentially is to set up a canvas using tkinter then matplotlib can write into it via the backend business.
Feedback? Questions? Drop me a line!

Tom's Mineralogy Info / tom@mmto.org