PythonPlot.jl icon indicating copy to clipboard operation
PythonPlot.jl copied to clipboard

Plotting multiple figures with subplots command only display the last figure in PythonPlot.jl

Open ay111 opened this issue 10 months ago • 0 comments

Plotting multiple figures with subplots command only display the last figure in both PythonPlot.jl and PyPlot.jl. Kindly run the program below.

using PythonPlot # Pyplot pygui(true)

x = LinRange(0, 2*pi, 100) f(x) = @. sin(x) g(x) = @. cos(x) h(x) = @. tan(x)

a1=subplots(3) a1[1] = plot(x,f(x)) a1[2] = plot(x,g(x)) a1[3] = plot(x,h(x))

ay111 avatar Sep 30 '23 11:09 ay111