Skip to content

Commit bd1a71b

Browse files
authored
Bug fix for labels in corner plot (#136)
This fixed #136
1 parent 5ec9cd7 commit bd1a71b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

swyft/plot/plot2.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ def corner(
353353
label_args={},
354354
contours_1d: bool = True,
355355
fig=None,
356-
labeler=None,
357356
smooth=0.0,
358357
) -> None:
359358
"""Make a beautiful corner plot.
@@ -384,10 +383,7 @@ def corner(
384383

385384
diagnostics = {}
386385

387-
if labeler is not None:
388-
labels = [labeler.get(k, k) for k in parnames]
389-
else:
390-
labels = parnames
386+
labels = labels if labels is not None else parnames
391387

392388
for i in range(K):
393389
for j in range(K):

0 commit comments

Comments
 (0)