ma-laforge / InspectDR.jl

Fast, interactive Julia/GTK+ plots (+Smith charts +Gtk widget +Cairo-only images)
MIT License
67 stars 9 forks source link

Missing a way to close plot windows #19

Closed ma-laforge closed 5 years ago

ma-laforge commented 5 years ago

Request derived from a question on Discourse (Iulian.Cioarca):

https://discourse.julialang.org/t/how-to-close-inspectdr-plot-window-or-update-it/25787

InspectDR should have a cleaner interface to close plot windows. Right now, we must use non-public functions:

using Plots
using InspectDR
inspectdr()
plot(1:100)
plotobj = gui()

InspectDR.window_close(plotobj.wnd)
ma-laforge commented 5 years ago

Can now close a plot window using:

close(plotobj)

Also added a way to clear plot data using one of: