Skip to content

Instantly share code, notes, and snippets.

@mkborregaard
Created November 4, 2018 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkborregaard/c617c96c4ba804475b18cd206da80d1a to your computer and use it in GitHub Desktop.
Save mkborregaard/c617c96c4ba804475b18cd206da80d1a to your computer and use it in GitHub Desktop.
module GGThemr
using AbstractPlotting, Colors
function ggthemr_style()
Theme(
linewidth = 3,
axis = Theme(
frame = Theme(
linewidth = 5,
frames = ((true, false), (true, false))
),
grid = Theme(
linewidth = (4, 4),
linestyle = (:dash, :dash),
),
ticks = Theme(
textsize = (4,4),
),
),
)
end
function fresh()
merge!(ggthemr_style(), Theme(
#colormap = ["#65ADC2", "#362C21"],
color = AbstractPlotting.Palette(
["#65ADC2", "#233B43",
"#E84646", "#C29365",
"#362C21", "#316675",
"#168E7F", "#109B37"]
),
axis = Theme(
frame = Theme(
linecolor = colorant"#826a50",
),
grid = Theme(
linecolor = (colorant"#eee4da", colorant"#eee4da"),
),
),
scatter = Theme(
strokecolor = :white,
markersize = 1.2
),
))
end
export fresh
end
using Makie, .GGThemr
function show_theme(theme)
AbstractPlotting.set_theme!(theme)
scene = scatter(randn(20), randn(20))
scatter!(scene, randn(20), randn(20))
scatter!(scene, randn(20), randn(20))
scatter!(scene, randn(20), randn(20))
scatter!(scene, randn(20), randn(20))
end
show_theme(fresh())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment