add fontkwargs for colorbar_title, plot_title and window_title

This commit is contained in:
Simon Christ 2020-01-17 12:26:38 +01:00
parent fd0b7e4129
commit 4064e21e2f

View File

@ -293,7 +293,15 @@ const _series_defaults = KW(
const _plot_defaults = KW( const _plot_defaults = KW(
:plot_title => text("", pointsize = 16), :plot_title => "",
:plot_titlefontsize => 16,
:plot_title_location => :center, # also :left or :right
:plot_fontfamily => :match,
:plot_titlefontfamily => :match,
:plot_titlefonthalign => :hcenter,
:plot_titlefontvalign => :vcenter,
:plot_titlefontrotation => 0.0,
:plot_titlefontcolor => :match,
:background_color => colorant"white", # default for all backgrounds, :background_color => colorant"white", # default for all backgrounds,
:background_color_outside => :match, # background outside grid, :background_color_outside => :match, # background outside grid,
:foreground_color => :auto, # default for all foregrounds, and title color, :foreground_color => :auto, # default for all foregrounds, and title color,
@ -301,6 +309,14 @@ const _plot_defaults = KW(
:size => (600,400), :size => (600,400),
:pos => (0,0), :pos => (0,0),
:window_title => "Plots.jl", :window_title => "Plots.jl",
:window_titlefontsize => 14,
:window_title_location => :center, # also :left or :right
:window_fontfamily => :match,
:window_titlefontfamily => :match,
:window_titlefonthalign => :hcenter,
:window_titlefontvalign => :vcenter,
:window_titlefontrotation => 0.0,
:window_titlefontcolor => :match,
:show => false, :show => false,
:layout => 1, :layout => 1,
:link => :none, :link => :none,
@ -360,10 +376,17 @@ const _subplot_defaults = KW(
:right_margin => :match, :right_margin => :match,
:bottom_margin => :match, :bottom_margin => :match,
:subplot_index => -1, :subplot_index => -1,
:colorbar_title => "", :colorbar_title => "",
:framestyle => :axes, :colorbar_titlefontsize => 16,
:camera => (30,30), :colorbar_title_location => :center, # also :left or :right
:extra_kwargs => Dict() :colorbar_fontfamily => :match,
:colorbar_titlefontfamily => :match,
:colorbar_titlefonthalign => :hcenter,
:colorbar_titlefontvalign => :vcenter,
:colorbar_titlefontrotation => 0.0,
:colorbar_titlefontcolor => :match,
:framestyle => :axes,
:camera => (30,30),
) )
const _axis_defaults = KW( const _axis_defaults = KW(