From 73aa61ceb61fe6a3aa7f3f11fac1653785823f4a Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Thu, 12 May 2016 18:55:55 -0700 Subject: [PATCH] Fix Deprecation Warning Fix for the warning: sys:1: MatplotlibDeprecationWarning: The set_axis_bgcolor function was deprecated in version 2.0. Use set_facecolor instead. --- src/backends/pyplot.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 8e68e678..01592a53 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -737,7 +737,7 @@ function _add_series(pkg::PyPlotBackend, plt::Plot, d::KW) end # this sets the bg color inside the grid - ax[:set_axis_bgcolor](getPyPlotColor(plt.plotargs[:background_color_inside])) + ax[:set_facecolor](getPyPlotColor(plt.plotargs[:background_color_inside])) # handle area filling fillrange = d[:fillrange]