Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Oct 22, 2023
1 parent 65e92f0 commit 554d771
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
23 changes: 23 additions & 0 deletions ext/RastersMakieExt/plotrecipes.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@

const HIDE_DEC = (; label=true, grid=false, minorgrid=false, minorticks=false)

function Rasters.style_rasters()
Makie.Attributes(
Axis=(
xtickalign=1.0,
ytickalign=1.0,
xticklabelrotation=-π/4,
xticklabelsize=14,
yticklabelsize=14,
aspect=DataAspect(),
),
Colorbar=(
ticklabelsize=11,
tickalign=1.0,
),
)
end

function Rasters.color_rasters()
return Makie.Attributes(
colormap = :batlow,
)
end

function lift_layer(r::Observable, inds...)
return lift(lift_layer, r, inds...)
end
Expand Down
7 changes: 1 addition & 6 deletions src/plotrecipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,7 @@ end

# this function is defined so that we can override style_rasters in RastersMakieExt
function style_rasters end

function color_rasters()
return MakieCore.Attributes(
colormap = :batlow,
)
end
function color_rasters end

function theme_rasters()
return merge(style_rasters(), color_rasters())
Expand Down

0 comments on commit 554d771

Please sign in to comment.