Skip to content

Window doesn't show until enough calls to flush_events() #1

Description

@ollpu

Awesome project, just what I was looking for!

Noting an issue I had. Probably should be fixed in matplotlib.

I'm on Linux, Wayland, GNOME. For me, the matplotlib window doesn't show up unless a lot of data has already come in. There's also some kind of issue with the plot not updating immediately after new data comes in.

I fixed it by adding

for _ in range(10):
    self.fig.canvas.flush_events()

to Figure.__init__ and duplicating

self.fig.canvas.flush_events()
self.fig.canvas.flush_events()

in Figure.draw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions