Skip to content

Commit 9871f2c

Browse files
committed
- Requires SignalTables 0.3.5.
- [`@usingModiaPlot`](@ref): corrected and fixed in docu. - Internal: A function call in the generated code prefixed with `Modia.`. - New test model TestPendulum.jl (from README.md file)
1 parent 958fad1 commit 9871f2c

File tree

15 files changed

+3703
-25
lines changed

15 files changed

+3703
-25
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
authors = ["Hilding Elmqvist <[email protected]>", "Martin Otter <[email protected]>"]
22
name = "Modia"
33
uuid = "cb905087-75eb-5f27-8515-1ce0ec8e839e"
4-
version = "0.9.0"
4+
version = "0.9.1"
55

66
[deps]
77
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
@@ -39,7 +39,7 @@ MonteCarloMeasurements = "1"
3939
OrderedCollections = "1"
4040
RecursiveFactorization = "0.2"
4141
Reexport = "1"
42-
SignalTables = "0.3.4"
42+
SignalTables = "0.3.5"
4343
StaticArrays = "1"
4444
Sundials = "4"
4545
TimerOutputs = "0.5"

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ julia> ]add SignalTablesInterface_PyPlot # if plotting with PyPlot desire
3030
add SignalTablesInterface_GLMakie # if plotting with GLMakie desired
3131
add SignalTablesInterface_WGLMakie # if plotting with WGLMakie desired
3232
add SignalTablesInterface_CairoMakie # if plotting with CairoMakie desired
33+
34+
# might be sometimes also useful
35+
add SignalTables
3336
```
3437

3538
or call `t = getValues(instantiatedModel, "time"), y = getValues(instantiatedModel, "y")` to retrieve
@@ -58,8 +61,6 @@ where *phi* is the rotation angle, *omega* the angular velocity, *m* the mass, *
5861

5962
```julia
6063
using Modia
61-
@usingModiaPlot # Use plot package defined with
62-
# ENV["MODIA_PLOT"] or Modia.usePlotPackage(..)
6364

6465
Pendulum = Model(
6566
L = 0.8u"m",
@@ -77,6 +78,10 @@ Pendulum = Model(
7778

7879
pendulum1 = @instantiateModel(Pendulum)
7980
simulate!(pendulum1, Tsit5(), stopTime = 10.0u"s", log=true)
81+
82+
@usingModiaPlot # Use plot package defined with
83+
# ENV["SignalTablesPlotPackage"] = "XXX" or with
84+
# usePlotPackage("XXX")
8085
plot(pendulum1, [("phi", "w"); "r"], figure = 1)
8186
```
8287

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Documenter, Modia, SignalTables, SignalTablesInterface_PyPlot
1+
using Documenter, Modia, Modia.SignalTables, SignalTablesInterface_PyPlot
22

33
makedocs(
44
#modules = [Modia],

0 commit comments

Comments
 (0)