From e58b55e9db89f2e5af8fd9a3b2d4fd902f29ca4c Mon Sep 17 00:00:00 2001 From: Florian Schaefer Date: Wed, 22 Mar 2017 18:12:56 +0100 Subject: [PATCH] removed deprecated warning --- pandapower/plotting/collections.py | 2 +- pandapower/run_dc_pf.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pandapower/plotting/collections.py b/pandapower/plotting/collections.py index 491f6598e..8703e80f5 100644 --- a/pandapower/plotting/collections.py +++ b/pandapower/plotting/collections.py @@ -193,7 +193,7 @@ def draw_collections(collections, figsize=(10, 8), ax=None, plot_colorbars=True) cbar_load = plt.colorbar(c, extend=c.extend if hasattr(c, "extend") else "neither") if hasattr(c, "cbar_title"): cbar_load.ax.set_ylabel(c.cbar_title) - ax.set_axis_bgcolor("white") + ax.set_facecolor("white") ax.xaxis.set_visible(False) ax.yaxis.set_visible(False) ax.set_aspect('equal', 'datalim') diff --git a/pandapower/run_dc_pf.py b/pandapower/run_dc_pf.py index 7765b7e71..0c52e602e 100644 --- a/pandapower/run_dc_pf.py +++ b/pandapower/run_dc_pf.py @@ -14,8 +14,6 @@ from pandapower.pypower_extensions.bustypes import bustypes -# from pandapower.run_pf_algorithm import _store_results_from_pf_in_ppci, _get_pf_variables_from_ppci - def _run_dc_pf(ppci): t0 = time() baseMVA, bus, gen, branch, ref, pv, pq, on, gbus, _ = _get_pf_variables_from_ppci(ppci)