Skip to content

Commit 129d9af

Browse files
Keyword argument passed twice (#10473)
1 parent 3a75f6f commit 129d9af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xarray/plot/facetgrid.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -910,14 +910,14 @@ def set_titles(
910910
# Only label the ones with data
911911
if d is not None:
912912
coord, value = list(d.items()).pop()
913-
title = nicetitle(coord, value, maxchar=maxchar)
913+
title = nicetitle(coord, value)
914914
ax.set_title(title, size=size, **kwargs)
915915
else:
916916
# The row titles on the right edge of the grid
917917
for index, (ax, row_name, handle) in enumerate(
918918
zip(self.axs[:, -1], self.row_names, self.row_labels, strict=True)
919919
):
920-
title = nicetitle(coord=self._row_var, value=row_name, maxchar=maxchar)
920+
title = nicetitle(coord=self._row_var, value=row_name)
921921
if not handle:
922922
self.row_labels[index] = ax.annotate(
923923
title,
@@ -936,7 +936,7 @@ def set_titles(
936936
for index, (ax, col_name, handle) in enumerate(
937937
zip(self.axs[0, :], self.col_names, self.col_labels, strict=True)
938938
):
939-
title = nicetitle(coord=self._col_var, value=col_name, maxchar=maxchar)
939+
title = nicetitle(coord=self._col_var, value=col_name)
940940
if not handle:
941941
self.col_labels[index] = ax.set_title(title, size=size, **kwargs)
942942
else:

0 commit comments

Comments
 (0)