You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting a strange error when using ImageView and PyPlot in the same project. This is on a Linux machine with Julia 1.9.3 and most recent versions of ImageView (0.12.0) and PyPlot (2.11.2)
I made a clean project with activate --temp and add ImageView,PyPlot
Then I do this, ordering seems to mater?
using PyPlot
fig,ax=subplots()
ax.plot(rand(100))
#displays a plot with data
using ImageView
ImageView.imshow(rand(100,100,10))
#displays a window but no data inside, see picture
It appears related to plotting with PyPlot first
if I do this
using ImageView,PyPlot
ImageView.imshow(rand(100,100,10))
#good image
I can even make plots with PyPlot and also keep making new windows with ImageView.imshow, but I have to do ImageView.imshow first.
The text was updated successfully, but these errors were encountered:
mgalenb
changed the title
ImageView doesn't display data if project includes PyPlot
ImageView doesn't display data if plotting with PyPlot occurs first
Oct 28, 2023
I can confirm this, also on Linux. It seems like it must be some sort of bad interaction between the Tk and GTK event loops. There is a lot of information on this in #262, #149, #128, and JuliaGraphics/Gtk.jl#493. It sounds like changing the PyPlot backend was settled on as the solution.
On ImageView 0.11.7, if you use PyPlot first and then call imshow, the image window does show up and can be interacted with, but the PyPlot window refuses to close and the REPL becomes unresponsive. Like 0.12.0, calling imshow before PyPlot functions seems to work fine.
I am getting a strange error when using ImageView and PyPlot in the same project. This is on a Linux machine with Julia 1.9.3 and most recent versions of ImageView (0.12.0) and PyPlot (2.11.2)
I made a clean project with
activate --temp
andadd ImageView,PyPlot
Then I do this, ordering seems to mater?
It appears related to plotting with
PyPlot
firstif I do this
I can even make plots with
PyPlot
and also keep making new windows withImageView.imshow
, but I have to doImageView.imshow
first.The text was updated successfully, but these errors were encountered: