widen bar plots; improve ggplot2 theme

This commit is contained in:
Thomas Breloff 2016-09-29 16:14:46 -04:00
parent 2b1c4685d2
commit 24a4c31f0d
2 changed files with 9 additions and 5 deletions

View File

@ -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)

View File

@ -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)