Skip to content

Commit

Permalink
Merge pull request #23 from EcoJulia/doc/gallery
Browse files Browse the repository at this point in the history
🎨 change the gallery
  • Loading branch information
tpoisot authored Feb 14, 2021
2 parents a25e2f2 + 6937d49 commit 19161a8
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions docs/src/gallery.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,45 @@
```@example gallery
using NeutralLandscapes
using Plots
function demolandscape(alg::T) where {T <: NeutralLandscapeMaker}
heatmap(rand(alg, (200, 200)), frame=:none, aspectratio=1, c=:davos)
end
```

## No gradient

```@example gallery
heatmap(rand(NoGradient(), (45, 45)))
demolandscape(NoGradient())
```

## Planar gradient

```@example gallery
heatmap(rand(PlanarGradient(), (45, 45)))
demolandscape(PlanarGradient(35))
```

## Edge gradient

```@example gallery
heatmap(rand(EdgeGradient(), (45, 45)))
demolandscape(EdgeGradient(186))
```

## Wave surface

```@example gallery
heatmap(rand(WaveSurface(), (45, 45)))
demolandscape(WaveSurface(35, 3))
```

## Distance gradient

```@example gallery
sources = unique(rand(1:2025, 15))
heatmap(rand(DistanceGradient(sources), (45, 45)))
sources = unique(rand(1:40000, 50))
demolandscape(DistanceGradient(sources))
```

## Rectangular cluster

```@example gallery
heatmap(rand(RectangularCluster(), (45, 45)))
demolandscape(RectangularCluster())
```

0 comments on commit 19161a8

Please sign in to comment.