|
1 | 1 | # SignalTablesInterface_PyPlot |
2 | 2 |
|
3 | | -SignalTablesInterface_PyPlot is part of [ModiaSim](https://modiasim.github.io/docs/) |
4 | | -and provides convenient line plots of simulation results with package |
| 3 | +[SignalTablesInterface_PyPlot](https://github.com/ModiaSim/SignalTablesInterface_PyPlot.jl) |
| 4 | +is an interface from [SignalTables](https://github.com/ModiaSim/SignalTables.jl) to |
5 | 5 | [PyPlot](https://github.com/JuliaPy/PyPlot.jl) (= a |
6 | | -Julia interface to the [Matplotlib](http://matplotlib.org/) plotting library |
7 | | -from Python, and specifically to the `matplotlib.pyplot` module). |
| 6 | +Julia interface to the [Matplotlib](http://matplotlib.org/) |
| 7 | +in order to be able to perform convenient line plots in SignalTables via PyPlot. |
8 | 8 |
|
9 | | -SignalTablesInterface_PyPlot is typically not directly used, but is activated via package |
| 9 | +SignalTablesInterface_PyPlot is usually not directly used, but is activated via package |
10 | 10 | [SignalTables](https://github.com/ModiaSim/SignalTables.jl). |
11 | 11 | For details of the installation and the usage, |
12 | 12 | see the [SignalTables documentation](https://modiasim.github.io/SignalTables.jl/stable/index.html). |
13 | 13 |
|
14 | 14 |
|
15 | | -## Example |
16 | | - |
17 | | -Once a signal table `sigTable` with signals `sigA(t), sigB(t), sigC(t), r[3](t)`: |
18 | | -is available and `PyPlot` selected for plotting, |
19 | | - |
20 | | -```julia |
21 | | -using SignalTables |
22 | | - |
23 | | -usePlotPackage("PyPlot") |
24 | | -@usingModiaPlot # = using SignalTablesInterface_PyPlot |
25 | | -``` |
26 | | - |
27 | | -then the following command |
28 | | - |
29 | | -```julia |
30 | | -plot(result, [("sigA", "sigB", "sigC"), "r[2:3]"]) |
31 | | -``` |
32 | | - |
33 | | -generates the following image (layout and legends are automatically constructed): |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | 15 | ## Main developer |
39 | 16 |
|
40 | 17 | [Martin Otter](https://rmc.dlr.de/sr/en/staff/martin.otter/), |
|
0 commit comments