Skip to content

Commit

Permalink
Bugfix, ylabel was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Apr 13, 2024
1 parent e569854 commit c72941c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/two_in_one.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 1 addition & 1 deletion src/ControlPlots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c72941c

Please sign in to comment.