Defining plots in function results in world problem

Try taking Plots.pyplot() out of the function.

2 Likes