-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I need to write this section more flexible.
It currently fails with:
fig, axarr = plt.subplots(ncols=2)
ls_kwargs = {'x':0.1}
letter_subplots(axarr,**ls_kwargs)Details
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[46], line 3
1 fig, axarr = plt.subplots(ncols=2)
2 ls_kwargs = {'x':0.1}
----> 3 letter_subplots(axarr,**ls_kwargs)
File /srv/conda/envs/notebook/lib/python3.10/site-packages/xarrayutils/plotting.py:136, in letter_subplots(axes, start_idx, box_color, labels, **kwargs)
133 labels = list(string.ascii_letters)
135 for ax, letter in zip(axes.flat, labels[start_idx:]):
--> 136 t = ax.text(
137 0.1,
138 0.85,
139 letter + ")",
140 horizontalalignment="center",
141 verticalalignment="center",
142 transform=ax.transAxes,
143 **kwargs,
144 )
145 if box_color:
146 t.set_bbox(dict(facecolor=box_color, alpha=0.5, edgecolor=None))
TypeError: Axes.text() got multiple values for argument 'x'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels