Skip to content

Commit

Permalink
fix for empty legend labels
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Jul 10, 2022
1 parent 9949a14 commit 0bfc785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getdist/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -2660,7 +2660,7 @@ def rectangle_plot(self, xparams, yparams, yroots=None, roots=None, plot_roots=N
if roots:
legend_labels = self._default_legend_labels(legend_labels, roots)
self.finish_plot(legend_labels=legend_labels, label_order=label_order,
legend_ncol=legend_ncol or self.settings.figure_legend_ncol or len(legend_labels))
legend_ncol=legend_ncol or self.settings.figure_legend_ncol or len(legend_labels or []))
return ax_arr

def rotate_xticklabels(self, ax=None, rotation=90, labelsize=None):
Expand Down

0 comments on commit 0bfc785

Please sign in to comment.