Skip to content

Window requires focus before functions return #563

@olsoni

Description

@olsoni

Hi, I've been happily using PyPlot for a while and loving it for the most part. One question I've had for a while and found nothing about online is how to make it plot (in interactive mode) without requiring the user to focus the window you are plotting into. Specifically, when I'm using PyPlot, I'll generally do something like this :

using PyPlot
fig = figure(1)
ax = subplot(1, 1, 1)
ax.plot(1:10, 1:10)

Executing those commands in the REPL (or in a script) leaves me with a blank plot until I either alt+tab to it's window or mouse over it. This feels like some window manager backend problem, but in case it was something I'm doing wrong or something internal to the package, I figured I'd bring it up here to see if anyone had insights.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions