Skip to content

Commit da2fbe2

Browse files
committed
Label will be expand in filled observation method
1 parent 24dbe92 commit da2fbe2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/py_eddy_tracker/observations/observation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,6 +1712,8 @@ def filled(
17121712
v = (v - vmin) / (vmax - vmin)
17131713
colors = [cmap(v_) for v_ in v]
17141714
kwargs["facecolors"] = colors
1715+
if "label" in kwargs:
1716+
kwargs["label"] = self.format_label(kwargs["label"])
17151717
c = PolyCollection(verts, **kwargs)
17161718
ax.add_collection(c)
17171719
c.cmap = cmap

0 commit comments

Comments
 (0)