fix background color

This commit is contained in:
Simon Christ 2019-11-25 23:05:27 +01:00
parent c4354c86c0
commit fe07fe0a7b

View File

@ -71,7 +71,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
if !pgfx_plot.is_created if !pgfx_plot.is_created
the_plot = PGFPlotsX.TikzPicture(PGFPlotsX.Options()) the_plot = PGFPlotsX.TikzPicture(PGFPlotsX.Options())
cols, rows = size(plt.layout.grid) cols, rows = size(plt.layout.grid)
bgc = plt.attr[:background_color_outside] bgc = plt.attr[:background_color_outside] == :match ? plt.attr[:background_color] : plt.attr[:background_color]
if bgc isa Colors.Colorant if bgc isa Colors.Colorant
cstr = plot_color(bgc) cstr = plot_color(bgc)
a = alpha(cstr) a = alpha(cstr)