pyplot bg color

This commit is contained in:
Thomas Breloff 2015-09-14 10:46:33 -04:00
parent 448fdaecbd
commit cdc6707ad3
2 changed files with 4 additions and 1 deletions

View File

@ -133,7 +133,7 @@ end
# note: generate separately so it's easy to comment out
generate_markdown(:qwt)
generate_markdown(:gadfly)
generate_markdown(:unicodeplots)
@osx_only generate_markdown(:unicodeplots)
generate_markdown(:pyplot)

View File

@ -141,6 +141,9 @@ function plot!(::PyPlotPackage, plt::Plot; kw...)
d[:serieshandle] = plotfunc(d[:x], d[:y]; extraargs...)
end
# this sets the bg color inside the grid (plt.o.o == matplotlib.Figure)
plt.o.o[:axes][1][:set_axis_bgcolor](getPyPlotColor(plt.initargs[:background_color]))
push!(plt.seriesargs, d)
plt
end