Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #97 from EcoJulia/fix/compat
Browse files Browse the repository at this point in the history
Remove outdated compat entries
  • Loading branch information
gabrieldansereau authored May 14, 2021
2 parents 24aed45 + 3effae5 commit ba22fed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea"

[compat]
ArchGDAL = "0.4, 0.5, 0.6"
ArchGDAL = "0.6"
Downloads = "1.4"
RecipesBase = "0.7, 0.8, 1.0"
Requires = "1.0"
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
GBIF = "ee291a33-5a6c-5552-a3c8-0f29a1181037"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
StatsPlots = "f3b207a7-027a-5e70-b257-86293d7955fd"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
Expand Down
7 changes: 6 additions & 1 deletion test/plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module SSLTestPlots
using SimpleSDMLayers
using Test
using Plots
using StatsPlots

temperature, precipitation = SimpleSDMPredictor(WorldClim, BioClim, [1,12])

Expand Down Expand Up @@ -36,7 +37,7 @@ for (i,e) in enumerate(lc1.grid)
n_lc1[i] = isnothing(e) ? NaN : Float32(e)
end
lc1 = SimpleSDMPredictor(n_lc1, lc1)
plot(lc1, c=:terrain, title="Landcover class 1", frame=:box,
plot(lc1, c=:heat, title="Landcover class 1", frame=:box,
xlabel = "Longitude",
ylabel= "Latitude")
savefig(joinpath("gallery", "range-comparison-landcover.png"))
Expand Down Expand Up @@ -65,6 +66,10 @@ savefig(joinpath("gallery", "heatmap_scaledown.png"))

histogram(precipitation, leg=false)
xaxis!("Precipitation")
savefig(joinpath("gallery", "histogram.png"))

density(precipitation, leg=false)
xaxis!("Precipitation")
savefig(joinpath("gallery", "density.png"))

plot(temperature, precipitation, leg=false, c=:grey, msc=:grey, alpha=0.5)
Expand Down

0 comments on commit ba22fed

Please sign in to comment.