From ad9862b316a03040062bee0ed41ac36f1226807b Mon Sep 17 00:00:00 2001 From: "michael d. catchen" Date: Fri, 24 Jan 2025 08:50:53 -0500 Subject: [PATCH] docs(testing single example block) --- docs/Project.toml | 3 ++- docs/src/samplers/simplerandom.md | 12 +----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/docs/Project.toml b/docs/Project.toml index 3512144..7f7f39b 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -6,6 +6,7 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244" DocumenterTools = "35a29f4d-8980-5a13-9543-d66fff28ecb8" DocumenterVitepress = "4710194d-e776-4893-9690-8d956a29c365" +GeoMakie = "db073c08-6b98-4ee5-b6a4-5efafb3259c6" HaltonSequences = "13907d55-377f-55d6-a9d6-25ac19e11b95" HiGHS = "87dc4568-4c63-4d18-b0c0-bb2238e4078b" JuMP = "4076af6c-e467-56ae-b986-b466b2749572" @@ -13,7 +14,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" NeutralLandscapes = "71847384-8354-4223-ac08-659a5128069f" ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" -SimpleSDMLayers = "2c645270-77db-11e9-22c3-0f302a89c64c" SliceMap = "82cb661a-3f19-5665-9e27-df437c7e54c8" SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" +SpeciesDistributionToolkit = "72b53823-5c0b-4575-ad0e-8e97227ad13b" StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" diff --git a/docs/src/samplers/simplerandom.md b/docs/src/samplers/simplerandom.md index 0b5fddb..4e14fa7 100644 --- a/docs/src/samplers/simplerandom.md +++ b/docs/src/samplers/simplerandom.md @@ -8,24 +8,14 @@ SimpleRandom First, load the packages we will use for this example -```@example 1 +```@example using BiodiversityObservationNetworks using CairoMakie using GeoMakie import SpeciesDistributionToolkit as SDT -``` - -Using a Polygon as the domain - -```@example 1 num_nodes = 50 corsica = SDT.gadm("FRA", "Corse") bon = sample(SimpleRandom(num_nodes), corsica) -``` - -Now plot - -```@example 1 f = Figure(size=(500, 500)) bonplot(f[1,1], bon, corsica, axistype=GeoAxis) f