简体   繁体   中英

Python Plotting and displaying multiple objects in same GUI window

I have a 2 part question:

what is the best method for plotting data in Python? I only need to plot data in 2d.

I have a canvas GUI that I built using Tkinter's canvas function. It draws an 8x8 grid of rectangles and also has some code to allow you to scroll the window. (I've attached a picture).

Is it possible to include a plot in the same window as this canvas object? I need to be able to display plotted data and hopefully add buttons to my GUI that will allow me to update the plot during the run of the GUI.

Thanks in advance!

在此输入图像描述

Matplotlib is the de-facto way to plot data with Python. It's really wonderful. It can also be embedded in Tk.

https://bitbucket.org/piotrlaczkowski/data-inspector-advanced/overview I wrote it for fast lab-measurement reporting and analyses.

Have fun Piotr

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM