From 1e31e1d2df91ac376e5e18053c5a06fd95875a64 Mon Sep 17 00:00:00 2001 From: sfoo Date: Tue, 21 Feb 2017 21:14:18 -0800 Subject: [PATCH] Key error attempt: changed sp to axis --- src/backends/pyplot.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 6504a5d8..a34f5da2 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -1062,6 +1062,11 @@ function _before_layout_calcs(plt::Plot{PyPlotBackend}) # pyaxis[:grid](true, color = fgcolor) # ax[:set_axisbelow](true) # end + if axis[:grid] + fgcolor = py_color(axix[:foreground_color_grid]) + pyaxis[:grid](true, color = fgcolor) + ax[:set_axisbelow](true) + end py_set_axis_colors(ax, axis) end