Skip to content

Commit 159642e

Browse files
committed
return plot mappable
1 parent 5266fb7 commit 159642e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/py_eddy_tracker/observations/observation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,14 +1823,16 @@ def display(
18231823
if not extern_only:
18241824
kwargs_e.pop("label", None)
18251825

1826+
mappables = list()
18261827
if not extern_only:
18271828
if ref is not None:
18281829
lon_s, lat_s = wrap_longitude(lon_s, lat_s, ref, cut=True)
1829-
ax.plot(lon_s, lat_s, **kwargs)
1830+
mappables.append(ax.plot(lon_s, lat_s, **kwargs)[0])
18301831
if not intern_only:
18311832
if ref is not None:
18321833
lon_e, lat_e = wrap_longitude(lon_e, lat_e, ref, cut=True)
1833-
ax.plot(lon_e, lat_e, linestyle="-.", **kwargs_e)
1834+
mappables.append(ax.plot(lon_e, lat_e, linestyle="-.", **kwargs_e)[0])
1835+
return mappables
18341836

18351837
def first_obs(self):
18361838
"""

0 commit comments

Comments
 (0)