When I do Julia: Execute File REPL no plot pane appears. I have to enclose the plot command in display() to get the plot pane to appear.
Is this the intended behavior? It seemed more natural to just have to include the line plot(Grid_Size, Grid_Size, label="Linear Scaling") for a plot to show up. I’m probably missing something. I’d appreciate any thoughts.
Thanks - I’ll do that. I’m just confused why just doing plot() doesn’t seem to be working in this particular script file. If I create a new file and do
using Plots
plot(1:1:10, map(x -> x^2, 1:1:10))
It appears to work fine (a plot appears in the plot pane).
This is true if you include a file within a Julia session (e.g. in the REPL, IJulia…), but not if you run it from the shell. There you have to explicitly show the result, either with @show, println… or display in the case of plots, as already explained.