From 2c3a1f562d00e54b0eab1176f45f8408b7847ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Sun, 14 Feb 2021 14:51:09 -0500 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=8E=A8=20change=20the=20gallery?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/gallery.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/src/gallery.md b/docs/src/gallery.md index c9b2166..0be6a6e 100644 --- a/docs/src/gallery.md +++ b/docs/src/gallery.md @@ -1,41 +1,45 @@ ```@example gallery using NeutralLandscapes using Plots + +function demolandscape(alg::T) where {T <: NeutralLandscapeMaker} + heatmap(rand(alg, (200, 200)), frame=:box, aspectratio=1, c=:alpine) +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()) ``` From 6937d49c4d6493a3cd59586854538d4a254af4ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Sun, 14 Feb 2021 15:09:36 -0500 Subject: [PATCH 2/2] no frame --- docs/src/gallery.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/gallery.md b/docs/src/gallery.md index 0be6a6e..8174e58 100644 --- a/docs/src/gallery.md +++ b/docs/src/gallery.md @@ -3,7 +3,7 @@ using NeutralLandscapes using Plots function demolandscape(alg::T) where {T <: NeutralLandscapeMaker} - heatmap(rand(alg, (200, 200)), frame=:box, aspectratio=1, c=:alpine) + heatmap(rand(alg, (200, 200)), frame=:none, aspectratio=1, c=:davos) end ```