Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gcalderone committed Apr 5, 2024
1 parent e65ecad commit 3790b90
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 35 deletions.
9 changes: 1 addition & 8 deletions docs/src/advanced.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
```@setup abc
using Gnuplot
Gnuplot.quitall()
mkpath("assets")
Gnuplot.options.term = "unknown"
empty!(Gnuplot.options.init)
push!( Gnuplot.options.init, linetypes(:Set1_5, lw=1.5, ps=1.5))
saveas(file) = Gnuplot.save(term="pngcairo size 550,350 fontscale 0.8", "assets/$(file).png")
include("setup.jl")
```

# Advanced usage
Expand Down
9 changes: 1 addition & 8 deletions docs/src/basic.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
```@setup abc
using Gnuplot
Gnuplot.quitall()
mkpath("assets")
Gnuplot.splash("assets/logo.png")
Gnuplot.options.term = "unknown"
empty!(Gnuplot.options.init)
push!( Gnuplot.options.init, linetypes(:Set1_5, lw=1.5, ps=1.5))
saveas(file) = Gnuplot.save(term="pngcairo size 550,350 fontscale 0.8", "assets/$(file).png")
include("setup.jl")
```

# Basic usage
Expand Down
6 changes: 3 additions & 3 deletions docs/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ The `]` character starts the Julia [package manager](https://julialang.github.io
Check **Gnuplot.jl** version with:
```julia-repl
julia> ]st Gnuplot
[dc211083] Gnuplot v1.6.4
[dc211083] Gnuplot v1.6.5
```
If the displayed version is not `v1.6.4` you are probably having a dependency conflict. In this case try forcing installation of the latest version with:
If the displayed version is not `v1.6.5` you are probably having a dependency conflict. In this case try forcing installation of the latest version with:
```julia-repl
julia> ]add Gnuplot@1.6.4
julia> ]add Gnuplot@1.6.5
```
and check which package is causing the conflict.

Expand Down
9 changes: 1 addition & 8 deletions docs/src/options.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
```@setup abc
using Gnuplot
Gnuplot.quitall()
mkpath("assets")
Gnuplot.options.term = "unknown"
empty!(Gnuplot.options.init)
push!( Gnuplot.options.init, linetypes(:Set1_5, lw=1.5, ps=1.5))
saveas(file) = Gnuplot.save(term="pngcairo size 550,350 fontscale 0.8", "assets/$(file).png")
include("setup.jl")
```

# Display options
Expand Down
9 changes: 1 addition & 8 deletions docs/src/recipes.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
```@setup abc
using Gnuplot
Gnuplot.quitall()
mkpath("assets")
Gnuplot.options.term = "unknown"
empty!(Gnuplot.options.init)
push!( Gnuplot.options.init, linetypes(:Set1_5, lw=1.5, ps=1.5))
saveas(file) = Gnuplot.save(term="pngcairo size 550,350 fontscale 0.8", "assets/$(file).png")
include("setup.jl")
```


Expand Down
9 changes: 9 additions & 0 deletions docs/src/setup.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Gnuplot, Random
Random.seed!(1)
Gnuplot.quitall()
mkpath("assets")
Gnuplot.splash("assets/logo.png")
Gnuplot.options.term = "unknown"
empty!(Gnuplot.options.init)
push!( Gnuplot.options.init, linetypes(:Set1_5, lw=1.5, ps=1.5))
saveas(file) = Gnuplot.save(term="pngcairo size 550,350 fontscale 0.8", "assets/$(file).png")

0 comments on commit 3790b90

Please sign in to comment.