diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d8d4dd..386a30b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## [1.16.1] - 2025-12-01 +- `Plots.jl` and `PyPlot.jl`: fixed missing plots in VSCode by using `display` in `reveal` + ## [1.16.0] - 2025-11-18 - Add PythonPlot to the backends diff --git a/Project.toml b/Project.toml index 955c3b5..14f34a1 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "GridVisualize" uuid = "5eed8a63-0fb0-45eb-886d-8d5a387d12b8" authors = ["Juergen Fuhrmann ", "Patrick Jaap "] -version = "1.16.0" +version = "1.16.1" [deps] ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4" diff --git a/ext/GridVisualizePlotsExt.jl b/ext/GridVisualizePlotsExt.jl index 13d1198..3e2b45d 100644 --- a/ext/GridVisualizePlotsExt.jl +++ b/ext/GridVisualizePlotsExt.jl @@ -46,7 +46,7 @@ function reveal(p::GridVisualizer, ::Type{PlotsType}) if haskey(p.context, :videostream) return Plots.frame(p.context[:videostream], plt) else - Plots.gui(plt) + display(plt) return plt end end diff --git a/src/pycommon.jl b/src/pycommon.jl index 67638cf..2f72658 100644 --- a/src/pycommon.jl +++ b/src/pycommon.jl @@ -36,7 +36,10 @@ function reveal(p::GridVisualizer, ::Type{T}) where {T <: AbstractPythonPlotterT p.Plotter.draw() sleep(1.0e-3) end - return p.Plotter.gcf() + current_figure = p.Plotter.gcf() + display(current_figure) + + return current_figure end function reveal(ctx::SubVisualizer, TP::Type{T}) where {T <: AbstractPythonPlotterType}