diff --git a/src/makielayout/defaultattributes.jl b/src/makielayout/defaultattributes.jl index c0c87a765..a6cf3c258 100644 --- a/src/makielayout/defaultattributes.jl +++ b/src/makielayout/defaultattributes.jl @@ -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." diff --git a/src/makielayout/layoutables/axis.jl b/src/makielayout/layoutables/axis.jl index cccb90d85..b1012c733 100644 --- a/src/makielayout/layoutables/axis.jl +++ b/src/makielayout/layoutables/axis.jl @@ -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, @@ -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 diff --git a/src/makielayout/layoutables/colorbar.jl b/src/makielayout/layoutables/colorbar.jl index 8a81f6749..a3b1984f3 100644 --- a/src/makielayout/layoutables/colorbar.jl +++ b/src/makielayout/layoutables/colorbar.jl @@ -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,