Skip to content

Commit

Permalink
improve README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Aug 4, 2024
1 parent 9f6d1c1 commit 69c2bd2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,20 @@ 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")
plot(1:11, [x, y, out]; labels=["input_a", "input_b", "output"],
fig="2-in-one")
```
<p align="center"><img src="./docs/n-in-one.png" width="400" /></p>

### dual y-axis
```
### Dual y-axis
```julia
using ControlPlots

T = 0:0.05:2pi+0.1
POS_Z = sin.(T)
VEL_Z = 5*cos.(T)
plot(T, POS_Z, VEL_Z; xlabel="time [s]", ylabels=["pos_z [m]", "vel_z [m/s]"],
plot(T, POS_Z, VEL_Z; xlabel="time [s]",
ylabels=["pos_z [m]", "vel_z [m/s]"],
labels=["pos_z", "vel_z"], fig="dual_y-axis")
```
<p align="center"><img src="./docs/dual_y-axis.png" width="400" /></p>
Expand Down

0 comments on commit 69c2bd2

Please sign in to comment.