Add PyPlot to TKinter interface | Essential Engineering

preview_player
Показать описание

This video demonstrates how to add a matplotlib plot to a TKinter GUI. First, create a figure including the pyplot of interest. After, we use the FigureCanvasTkAgg to create a chart and then add it to the tkinter GUI using the get_tk_widget() method. Adding plots to interfaces like this creates an interactive chart format. We can update the values live and display new charts based on values we enter.

ABOUT ME: I am a recent graduate from the University of Tennessee Knoxville, and I am on a mission to provide educational and informative content in the realm of engineering. This can range from programming lessons to videos about mechanics of materials, to circuits, and beyond! Most of the lessons I learned in college came not through the classroom, but the time I spent learning things by myself through online communities such as YouTube. I hope to give back to the community by providing valuable content to my viewers. Feel free to subscribe and I promise you'll learn something new with every video!
Рекомендации по теме
Комментарии
Автор

thanks alot man this is exactly what i was looking for

derdorrado_
Автор

Tq for sharing. Suggestion: Extend the idea to animating the plot with a time base.

kychemclass
Автор

Thank you very much. This is really helpful.

toygraphers
Автор

what you did was awesome, thanks for sharing this

lopezvazquezfernando
Автор

Hello
This is a great video please keep up the good work

carloszuna
Автор

it is nice tutorial. please make more tutorial on matplotlib with tkinter widgets

mukeshsharma
Автор

can you do a tutorial where you use tkinter, matplotlib and numpy and how to plot graphs using data you enter into entry widgets

_kairo
Автор

I'll be very short. Thanks a lot, this is very helpful as ever
P.S. sorry for my English :)

МаксВикулов-ъч
Автор

Ok, now I have a question... how do I insert other types of charts? I've tried to put a normal distribution and I failed to do it.

joseluizdurigon
Автор

Hey, cool video! Could you please explain how this example would work if you use chart.get_tk_widget().pack() instead of chart.get_tk_widget().grid()? I try to get it worked for hours, but I cannot overwrite or delete the existing canvas and replace it by a new one.

maximilianb.
Автор

when I try to write plt.grid() in my function or plt.gcf().autofmt_xdate() it does not show

jacolategan
Автор

Hello friend, nice to meet you, I have a problem when I put play in visual studio code, I get the interface and I can place the values but it does not calculate them. What can be? suddenly you can give me some libraries that you previously installed before running the program.
:)

fernandomoya
Автор

please let me know which book is good for learning this kind of stuff

mukeshsharma
Автор

Really great video! Thanks a lot. Someone have an idea to do the same but just with shifting the y axis in order to see the sinus even with a high vertical shift?

benjamint