plot_pump_curve#
module wntr.graphics.curve
- plot_pump_curve(pump, title='Pump curve', xmin=0, xmax=None, ymin=0, ymax=None, xlabel='Flow (m$^3$/s)', ylabel='Head (m)', ax=None)[source]#
Plot points in the pump curve along with the pump curve polynomial using head curve coefficients (H = A - B*Q**C)
- Parameters:
pump (wntr.network.elements.Pump object) – Pump
title (string, optional) – Plot title
xmin (float, optional) – X axis minimum
xmax (float, optional) – X axis maximum
ymin (float, optional) – Y axis minimum
ymax (float, optional) – Y axis maximum
xlabel (string, optional) – X axis label
ylabel (string, optional) – Y axis label
ax (matplotlib axes object, optional) – Axes for plotting (None indicates that a new figure with a single axes will be used)
- Returns:
ax
- Return type:
matplotlib axes object