Skip to content

Issues with popup qtagg and tkagg backends #244

@Xunius

Description

@Xunius

Description

Trying to create a basic contourf(). The figure window shows up, but it is shaking, and Python freezes.

It seems like proplot is adjusting sizes or something but ends up in an infinite loop.

Steps to reproduce

Installed proplot using conda install -c conda-forge proplot.
Then run this following script:

import numpy as np
import proplot as pplot

if __name__=='__main__':

    lons=np.arange(0, 360)
    lats=np.arange(-90, 90)
    lons, lats=np.meshgrid(lons, lats)
    var=np.random.random(lons.shape)

    fig,ax=pplot.subplots()
    cs=ax.contourf(lons, lats, var)
    ax.format(title='Test')
    ax.colorbar(cs)
    fig.show()

Expected behavior: A window pops up showing a global mean sea level pressure plot.

Actual behavior: A window pops up but the figure elements and the figure window itself are shaking. Python freezes.

I also created a screencapture showing the issue: https://github.com/Xunius/git_demo/blob/master/simplescreenrecorder-2021-02-10_20.33.19.mp4 (NOTE the example in the screencatpure is using cartopy, but the symptom is the same.)

Equivalent steps in matplotlib

Pretty sure this is proplot specific.

Proplot version

  • Proplot: 0.6.4
  • Python: 3.8.5
  • matplotlib: 3.3.2

The issue also happens in another environment:

  • Proplot: 0.6.4
  • Python: 3.7.9
  • matplotlib: 3.2.2

OS: Manjaro Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions