Skip to content Skip to sidebar Skip to footer

Tkinter Window Changes Dimensions Or Resolution When I Use Pyplot

First time posting, but have found these forums incredibly helpful with my python learning! I have a problem when I call plt.plot as it's resizing my tkinter window. I've tried thi

Solution 1:

Under windows customize display there's a scrollbar for: "Change the size of text, apps and other items: 150% (Recommended)"

When I changed that to 100% the tkinter window no longer resizes.

Thank you @R.p.T for trying to assist me!

Solution 2:

In stead of using plt.plot(x), you might want to use plt.Figure() first. To be more specific, plotting() function can be constructed as follows.

def plotting():
    fig = plt.Figure()
    ax = fig.add_subplot()
    ax.plot(x)

Then, you can work on fig to realize the functions.

Post a Comment for "Tkinter Window Changes Dimensions Or Resolution When I Use Pyplot"