Skip to content

Commit 1d76650

Browse files
committed
minor fix
MatplotlibDeprecationWarning
1 parent aabbc7e commit 1d76650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

epyt/epanet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10271,7 +10271,7 @@ def plot(self, title=None, line=None, point=None, nodesID=None,
1027110271

1027210272
if fix_colorbar and link_values is not None or node_values is not None:
1027310273
scal = cm.ScalarMappable(norm=mpl.colors.Normalize(min_colorbar, max_colorbar), cmap=colorbar)
10274-
bar = plt.colorbar(scal, orientation='horizontal', shrink=0.7, pad=0.05)
10274+
bar = plt.colorbar(scal, ax=plt.gca(), orientation='horizontal', shrink=0.7, pad=0.05)
1027510275
bar.ax.tick_params(labelsize=fontsize)
1027610276
bar.outline.set_visible(False)
1027710277
bar.set_label(label=colorbar_label, size=fontsize)

0 commit comments

Comments
 (0)