Skip to content

Commit 3ee91b3

Browse files
update to CairoMakie 0.15
1 parent a9547a6 commit 3ee91b3

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ NCDatasets = "85f8d34a-cbdd-5861-8df4-14fed0d494ab"
1010
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1111

1212
[compat]
13-
CairoMakie = "0.10"
13+
CairoMakie = "0.15"
1414
Dates = "1"
1515
Documenter = "1"
1616
Downloads = "1"

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ end
2020

2121
makedocs(;
2222
modules=[CommonDataModel],
23-
repo="https://github.com/JuliaGeo/CommonDataModel.jl/blob/{commit}{path}#{line}",
23+
repo=Documenter.Remotes.GitHub("JuliaGeo", "CommonDataModel.jl"),
2424
sitename="CommonDataModel.jl",
2525
format=Documenter.HTML(;
2626
prettyurls=get(ENV, "CI", "false") == "true",

docs/src/tutorial1.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ using IntervalSets
1212
using NCDatasets
1313
using Statistics
1414

15+
# store images as separated files
16+
CairoMakie.enable_only_mime!("png")
17+
1518
# Some helper functions for plotting with Makie for plotting maps and timeseries.
1619

1720
function nicemaps(v; timeindex = 1, lon = v["lon"][:], lat = v["lat"][:], title = nothing)
18-
fig, ax, hm = heatmap(lon,lat,v[:,:,timeindex],aspect_ratio = 1/cosd(mean(lat)))
21+
fig = Figure()
22+
ax = Axis(fig[1, 1],aspect = AxisAspect(1/cosd(mean(lat))))
23+
hm = heatmap!(ax,lon,lat,v[:,:,timeindex])
1924
if !isnothing(title)
2025
ax.title[] = title
2126
end

0 commit comments

Comments
 (0)