Skip to content

Commit

Permalink
Bug fix for labels in corner plot (#136)
Browse files Browse the repository at this point in the history
This fixed #136
  • Loading branch information
anchal-009 authored Jul 28, 2023
1 parent 5ec9cd7 commit bd1a71b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions swyft/plot/plot2.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ def corner(
label_args={},
contours_1d: bool = True,
fig=None,
labeler=None,
smooth=0.0,
) -> None:
"""Make a beautiful corner plot.
Expand Down Expand Up @@ -384,10 +383,7 @@ def corner(

diagnostics = {}

if labeler is not None:
labels = [labeler.get(k, k) for k in parnames]
else:
labels = parnames
labels = labels if labels is not None else parnames

for i in range(K):
for j in range(K):
Expand Down

0 comments on commit bd1a71b

Please sign in to comment.