Skip to content

Commit

Permalink
return makie theme
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Oct 22, 2023
1 parent 10c6c08 commit 65e92f0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/plotrecipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,22 @@ function rplot(args...)
@error("Please load `Makie.jl` and then call this function. If Makie is loaded, then you can't call `rplot` with no arguments!")
end

# define the theme

# 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 theme_rasters()
return merge(style_rasters(), color_rasters())
end


##################################################################################
# Utils

Expand Down

0 comments on commit 65e92f0

Please sign in to comment.