Skip to content

Commit b7644ea

Browse files
committed
Handle repeated elements in FloorPlot
1 parent a356bf0 commit b7644ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xplt/line.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ def update(self, survey, line=None, *, autoscale=None):
382382
legend_entries = []
383383
for i, (x, y, rt, name, arc) in enumerate(zip(X, Y, R, NAME, BEND)):
384384

385+
name = name.split("::")[0] # for repeated elements
386+
385387
drift_length = get(survey, "drift_length", None)
386388

387389
if line is not None:

0 commit comments

Comments
 (0)