Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Jul 28, 2024
1 parent 44ffc4a commit 1fa64cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,18 @@ Y1 = sin.(T)
Y2 = cos.(T)
p = plotx(T, Y1, Y2; ylabels=["Y1", "Y2"], fig="dual")
```
<p align="center"><img src="./docs/multi-channel.png" width="400" /></p>
<p align="center"><img src="./docs/multi-channel.png" width="500" /></p>

### XY-Plot
```julia
using ControlPlots

T = 0:0.1:2pi+0.1
T = 0:0.05:2pi+0.1
X = sin.(T)
Y = cos.(T)
Y = cos.(3T)
p = plotxy(X, Y, xlabel="X", ylabel="Y", fig="xy")
```
<p align="center"><img src="./docs/xy-plot.png" width="400" /></p>

### n-in-one Plot
You can plot multiple time series in one plot, e.g. like this:
Expand Down
Binary file added docs/xy-plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions examples/plotxy.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ControlPlots

T = 0:0.1:2pi+0.1
T = 0:0.05:2pi+0.1
X = sin.(T)
Y = cos.(T)
plotxy(X, Y, fig="xy", xlabel="X", ylabel="Y")
Y = cos.(3T)
plotxy(X, Y, fig="xy-plot", xlabel="X", ylabel="Y")

0 comments on commit 1fa64cf

Please sign in to comment.