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
While using backend PyPlot you get warning on the first run "_display is not defined for this backend." when pyplot() is inside a function. I don't know if this how it is intended to work, but at least the warning could be more helpful. I have no idea why it has problems with display in particular?
using Plots
function main()
pyplot()
a = plot(1:10,1:10)
display(a)
end
main()
This works fine if pyplot() is outside of main().
The text was updated successfully, but these errors were encountered:
using Plots
functionmain()
pyplot()
plot(1:10,1:10)
end
p =main()
display(p)
But you need to return to the toplevel between a backend switch and the display, since the backend initialization is in a different world age otherwise
While using backend PyPlot you get warning on the first run "_display is not defined for this backend." when pyplot() is inside a function. I don't know if this how it is intended to work, but at least the warning could be more helpful. I have no idea why it has problems with display in particular?
This works fine if pyplot() is outside of main().
The text was updated successfully, but these errors were encountered: