From 65944e20caf78071feb18a3f2234fd904fa5e683 Mon Sep 17 00:00:00 2001 From: Tom Brown Date: Wed, 28 Oct 2020 18:47:28 +0100 Subject: [PATCH] plot_network: Fix bugs in plotting of today's network --- scripts/plot_network.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/plot_network.py b/scripts/plot_network.py index 707481e7..cd419808 100644 --- a/scripts/plot_network.py +++ b/scripts/plot_network.py @@ -324,7 +324,7 @@ def plot_map_without(network): fig.set_size_inches(7, 6) # PDF has minimum width, so set these to zero - line_lower_threshold = 0. + line_lower_threshold = 200. line_upper_threshold = 1e4 linewidth_factor = 2e3 ac_color = "gray" @@ -343,19 +343,19 @@ def plot_map_without(network): line_widths = n.lines.s_nom_min link_widths = n.links.p_nom_min - line_widths[line_widths < line_upper_threshold] = 0. - link_widths[link_widths < line_upper_threshold] = 0. + line_widths[line_widths < line_lower_threshold] = 0. + link_widths[link_widths < line_lower_threshold] = 0. line_widths[line_widths > line_upper_threshold] = line_upper_threshold link_widths[link_widths > line_upper_threshold] = line_upper_threshold - n.plot(bus_sizes=10, - bus_colors="k", + n.plot(bus_colors="k", line_colors=ac_color, link_colors=dc_color, line_widths=line_widths / linewidth_factor, link_widths=link_widths / linewidth_factor, - ax=ax, boundaries=(-10, 30, 34, 70)) + ax=ax, boundaries=(-10, 30, 34, 70), + color_geomap={'ocean': 'lightblue', 'land': "palegoldenrod"}) handles = [] labels = []