The plot (with Plots pkg) not displayed, if plot(...) is not the last operator

@nilshg thank you for the explanation and for the suggestions.

Actualy my problem arose as I wanted for plot from a loop (in a function), and now I have found two more discussions on exactly that problem How to plot in for loop (or map) and Plotting from within a loop using GR? - #5 by baggepinnen .

My prefered solution is to call current() or plot!() as the last code line.