Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
axis titlecolor and colorbar labelcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Jan 7, 2021
1 parent d78a16d commit 7c16935
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/makielayout/defaultattributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function default_attributes(::Type{Axis}, scene)
titlevisible = true
"The horizontal alignment of the title."
titlealign = :center
"The color of the title"
titlecolor = :black
"The font family of the xlabel."
xlabelfont = lift_parent_attribute(scene, :font, "DejaVu Sans")
"The font family of the ylabel."
Expand Down
3 changes: 2 additions & 1 deletion src/makielayout/layoutables/axis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function Axis(fig_or_scene; bbox = nothing, kwargs...)
attrs = merge!(merge!(Attributes(kwargs), theme_attrs), default_attrs)

@extract attrs (
title, titlefont, titlesize, titlegap, titlevisible, titlealign,
title, titlefont, titlesize, titlegap, titlevisible, titlealign, titlecolor,
xlabel, ylabel, xlabelcolor, ylabelcolor, xlabelsize, ylabelsize,
xlabelvisible, ylabelvisible, xlabelpadding, ylabelpadding,
xticklabelsize, xticklabelcolor, yticklabelsize, xticklabelsvisible, yticklabelsvisible,
Expand Down Expand Up @@ -247,6 +247,7 @@ function Axis(fig_or_scene; bbox = nothing, kwargs...)
textsize = titlesize,
align = titlealignnode,
font = titlefont,
color = titlecolor,
show_axis=false)
decorations[:title] = titlet

Expand Down
1 change: 1 addition & 0 deletions src/makielayout/layoutables/colorbar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function Colorbar(fig_or_scene; bbox = nothing, kwargs...)
axis = LineAxis(topscene, endpoints = axispoints, flipped = flipaxisposition,
limits = limits, ticklabelalign = ticklabelalign, label = label,
labelpadding = labelpadding, labelvisible = labelvisible, labelsize = labelsize,
labelcolor = labelcolor,
labelfont = labelfont, ticklabelfont = ticklabelfont, ticks = ticks, tickformat = tickformat,
ticklabelsize = ticklabelsize, ticklabelsvisible = ticklabelsvisible, ticksize = ticksize,
ticksvisible = ticksvisible, ticklabelpad = ticklabelpad, tickalign = tickalign,
Expand Down

0 comments on commit 7c16935

Please sign in to comment.