widen bar plots; improve ggplot2 theme
This commit is contained in:
parent
2b1c4685d2
commit
24a4c31f0d
@ -405,11 +405,15 @@ end
|
||||
push!(yseg, yi, fi, fi, yi, yi)
|
||||
end
|
||||
|
||||
# widen limits out a bit
|
||||
expand_extrema!(axis, widen(extrema(xseg.pts)...))
|
||||
|
||||
# switch back
|
||||
if !isvertical(d)
|
||||
xseg, yseg = yseg, xseg
|
||||
end
|
||||
|
||||
|
||||
# reset orientation
|
||||
orientation := default(:orientation)
|
||||
|
||||
|
||||
@ -52,12 +52,12 @@ function add_theme(sym::Symbol;
|
||||
end
|
||||
|
||||
add_theme(:ggplot2,
|
||||
bglegend = _invisible,
|
||||
bglegend = :lightgray,
|
||||
bginside = :lightgray,
|
||||
fg = :white,
|
||||
fglegend = _invisible,
|
||||
fgtext = :gray,
|
||||
fgguide = :black
|
||||
fg = :black,
|
||||
fggrid = :white,
|
||||
fgborder = _invisible,
|
||||
fgaxis = _invisible
|
||||
)
|
||||
|
||||
function set_theme(sym::Symbol)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user