I would like to set a custom theme for plots using CairoMakie to set xgridvisible and ygridvisible parameters to false for each of my plots.
I tried the following code, but it didn't work.
custom_theme = Theme(ygridvisible = false, xgridvisible = false )
set_theme!(custom_theme)
I do not want to run for every single plot and axes ax.xgridvisible = false
Theming block objects like Axis requires using the (title-case capitalized) type name as a key in the theme. This is explained in the documentation.
For your specific case, making the x- and y-grids invisible is done like this:
Without the theme:
With the theme applied: