Skip to content

Commit

Permalink
Minor improvement in docu and README
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinOtter committed Jun 15, 2021
1 parent 049ffc4 commit 2fde84c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,31 @@ Additionally, **operations** on simulation results are provided, especially to p
- [WGLMakie](https://github.com/JuliaPlots/WGLMakie.jl) (interactive plots in a browser window),
- [CairoMakie](https://github.com/JuliaPlots/CairoMakie.jl) (static plots on file with publication quality),
- [PyPlot](https://github.com/JuliaPy/PyPlot.jl) (plots with Matplotlib from Python) and
- NoPlot (= all plot calls are ignored).
- NoPlot (= all plot calls are ignored; NoPlot is a module in ModiaResult), or
- SilentNoPlot (= NoPlot without messages; SilentNoPlot is a module in ModiaResult).


## Installation

ModiaResult and the accompanying plot packages are currently being registered. During this phase, the packages are installed as (Julia >= 1.5 is required):
ModiaResult is registered. The accompanying plot packages are currently being registered.
During this phase, the packages are installed as (Julia >= 1.5 is required):

```julia
julia> ]add https://github.com/ModiaSim/ModiaResult.jl
julia> ]add ModiaResult,
add https://github.com/ModiaSim/ModiaPlot_GLMakie.jl
add https://github.com/ModiaSim/ModiaPlot_WGLMakie.jl
add https://github.com/ModiaSim/ModiaPlot_CairoMakie.jl
add https://github.com/ModiaSim/ModiaPlot_PyPlot.jl
add https://github.com/ModiaSim/ModiaPlot_NoPlot.jl
```

Once registered, install the packages with:
Once all packages are registered, install the packages with:

```julia
julia> ]add ModiaResult, ModiaPlot_GLMakie, ModiaPlot_WGLMakie
add ModiaPlot_CairoMakie, ModiaPlot_PyPlot, ModiaPlot_NoPlot
julia> ]add ModiaResult
add ModiaPlot_GLMakie
add ModiaPlot_WGLMakie
add ModiaPlot_CairoMakie
add ModiaPlot_PyPlot
```


Expand Down Expand Up @@ -100,7 +104,8 @@ result = ModiaResult.ResultDict("time" => t0,
"sigB" => sigB,
"sigC" => sigC,
"r" => r,
defaultHeading = "Segmented signals")
defaultHeading = "Segmented signals",
hasOneTimeSignal = false)

# Generate line plots
ModiaResult.@usingModiaPlot # = "using ModiaPlot_PyPlot"
Expand All @@ -112,7 +117,7 @@ Executing this code results in the following plot:
![SegmentedSignalsPlot](docs/resources/images/segmented-signals-plot.png)


Many other examples are available at `$(ModiaResult.path)/test_plot/*.jl`.
Many other examples are available at `$(ModiaResult.path)/test/*.jl`.



Expand Down
5 changes: 3 additions & 2 deletions docs/src/GettingStarted.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Getting Started

Note, many examples are available at `$(ModiaResult.path)/test_plot/*.jl`.
Note, many examples are available at `$(ModiaResult.path)/test/*.jl`.


## Simple plot
Expand Down Expand Up @@ -61,7 +61,8 @@ result = ModiaResult.ResultDict("time" => t0,
"sigB" => sigB,
"sigC" => sigC,
"r" => r,
defaultHeading = "Segmented signals")
defaultHeading = "Segmented signals",
hasOneTimeSignal = false)

# Generate line plots
ModiaResult.@usingModiaPlot # = "using ModiaPlot_PyPlot"
Expand Down

0 comments on commit 2fde84c

Please sign in to comment.