Skip to content Skip to sidebar Skip to footer

Matplotlib Figure Stucked (grey Window)

I have been having some trouble with matplotlib since I started using python. When I use the interactive mode, I have to run ipython --pylab --wthread to get plots (if I don't use

Solution 1:

It looks like you've almost got it, but try doing things in this order instead:

fig = plt.figure(figsize=(16,8))
ax = [fig.add_subplot(121),fig.add_subplot(122)]

ax[0].things
ax[1].things

plt.show()

#show the button panel

However, the best method may be to integrate the plot into your GUI. I am not familiar with EasyGUI, but it seems to be based on tk. This example should help you with embedding the figure into a tk window.

Post a Comment for "Matplotlib Figure Stucked (grey Window)"