Plotting multiple graphs in separate tkinter figures within the same window Plotting multiple graphs in separate tkinter figures within the same window tkinter tkinter

Plotting multiple graphs in separate tkinter figures within the same window


You simply need to use the Frame widgets.

You can have more than one frame in the same window so you create each frame you need for each graph and work with them that way.

Seeing that you are already using frames it should not be hard for you to set up.


you need to put parameter in the subplot method.

plt.subplot(421)plt.xlabel('Time in seconds')plt.ylabel('Amplitude')plt.title('%s HeartBeat ..' % beat_file1)plt.plot(timeArray1, Y_filtered1)plt.subplot(422)plt.xlabel('Time in seconds')plt.ylabel('Amplitude')plt.title('%s HeartBeat ..' % beat_file2)plt.plot(timeArray2, Y_filtered2)

There is an example here : https://matplotlib.org/users/pyplot_tutorial.html