Skip to content

Commit d5f36ab

Browse files
committed
Prepare initial version 0.1.0
1 parent 9e80ea0 commit d5f36ab

File tree

5 files changed

+11
-45
lines changed

5 files changed

+11
-45
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SignalTablesInterface_PyPlot"
22
uuid = "a24218ac-d749-4e8e-be24-21e617b5c7ba"
33
authors = ["Martin.Otter@dlr.de <Martin.Otter@dlr.de>"]
4-
version = "0.1.0-dev"
4+
version = "0.1.0"
55

66
[deps]
77
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"

README.md

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,17 @@
11
# SignalTablesInterface_PyPlot
22

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
55
[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.
88

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
1010
[SignalTables](https://github.com/ModiaSim/SignalTables.jl).
1111
For details of the installation and the usage,
1212
see the [SignalTables documentation](https://modiasim.github.io/SignalTables.jl/stable/index.html).
1313

1414

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-
![SegmentedSignalsPlot](docs/resources/images/signals-plot.png)
36-
37-
3815
## Main developer
3916

4017
[Martin Otter](https://rmc.dlr.de/sr/en/staff/martin.otter/),
-49.1 KB
Binary file not shown.

test/Project.toml

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/runtests.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module Runtests
22

33
import SignalTables
4-
using Test
4+
using SignalTables.Test
55

6-
@testset "Test ModiaPlot_PyPlot/test" begin
7-
usePlotPackage("PyPlot")
8-
include("$(SignalTables.path)/test/runtests_withPlot.jl")
9-
usePreviousPlotPackage()
6+
@testset "Test SignalTablesInterface_PyPlot/test" begin
7+
SignalTables.usePlotPackage("PyPlot")
8+
include("$(SignalTables.path)/test/include_all.jl")
9+
SignalTables.usePreviousPlotPackage()
1010
end
1111

1212
end

0 commit comments

Comments
 (0)