JunoLab / atom-ink

IDE toolkit for Atom
MIT License
229 stars 40 forks source link

Plot does not fit the plot pane #119

Closed DatName closed 7 years ago

DatName commented 7 years ago

After update to 0.6.3 I am getting strange behavior of plot pane. When I do Gadfly.plot(x = [1 2 3], y = [1 2 3]) I get the following: juno_plot_pane But then I execute Plots.plot(x = [1 2 3], y = [1 2 3]) twice which gives me a normal plot that fits the plot pane. But still, If I resize console, the plot pane dos not resizes accordingly:

juno_plot_pane_1

Finally, if I execute these two lines one after another: Gadfly.plot(x = [1 2 3], y = [1 2 3]) Plots.plot(x = [1 2 3], y = [1 2 3]) the plot will change its size dramatically every time.

julia-client: v.0.5.12 Plots uses PyPlot backend all packages are up-to-date Running this under Windows

pfitzseb commented 7 years ago

This should be fixed on the latest release, provided the backend properly queries the plot pane size (Plots.jl for example works). Please reopen if this isn't fixed.