diff --git a/examples/two_in_one.jl b/examples/two_in_one.jl index b2a3de2..890d6eb 100644 --- a/examples/two_in_one.jl +++ b/examples/two_in_one.jl @@ -2,4 +2,4 @@ using ControlPlots x = 1.5*ones(11) y = 1:0.1:2 out = min.(x,y) -plot(1:11, [x,y,out]; labels=["input_a", "input_b", "output"], fig="2-in-one") +p=plot(1:11, [x,y,out]; ylabel="gain", xlabel="time", labels=["input_a", "input_b", "output"], fig="2-in-one") diff --git a/src/ControlPlots.jl b/src/ControlPlots.jl index 0f55c0e..774a7be 100644 --- a/src/ControlPlots.jl +++ b/src/ControlPlots.jl @@ -139,7 +139,7 @@ function display(P::PlotX) elseif P.type == 3 plotxy(P.X, P.Y; xlabel=P.xlabel, ylabel=P.ylabels, fig=P.fig, ysize=P.ysize, disp=true) else - plot(P.X, P.Y; xlabel=P.xlabel, labels=P.labels, fig=P.fig, ysize=P.ysize, disp=true) + plot(P.X, P.Y; xlabel=P.xlabel, ylabel=P.ylabels, labels=P.labels, fig=P.fig, ysize=P.ysize, disp=true) end plt.pause(0.01) plt.show(block=false)