diff --git a/src/hydrodiy/plot/putils.py b/src/hydrodiy/plot/putils.py index f2da89c..0ccacdc 100644 --- a/src/hydrodiy/plot/putils.py +++ b/src/hydrodiy/plot/putils.py @@ -777,12 +777,10 @@ def notlist(x): for icat in icats: # plot config idx = cats == icat - if idx.sum() == 0: - continue label = labels[icat] if show_counts_in_legend: - label = f"{label} ({idx.sum()})" + label = f"{label} ({idx.sum()})" marker = markers[icat] markersize = markersizes[icat] @@ -794,9 +792,6 @@ def notlist(x): u, v = x[idx], y[idx] else: u, v = [], [] - warnmess = "No points falling in category "\ - + f"{icat} ({label})" - warnings.warn(warnmess) # Plot category sc = ax.scatter(u, v, label=label,