File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1686,8 +1686,8 @@ def format(
1686
1686
classes = set () # track used dictionaries
1687
1687
for number , ax in enumerate (axs ):
1688
1688
number = number + 1 # number from m1
1689
+ store_old_number = ax .number
1689
1690
if ax .number != number :
1690
- store_old_number = ax .number
1691
1691
ax .number = number
1692
1692
kw = {
1693
1693
key : value
Original file line number Diff line number Diff line change @@ -181,11 +181,8 @@ def test_subset_format():
181
181
fig , axs = uplt .subplots (nrows = 1 , ncols = 3 )
182
182
axs [1 :].format (title = ["a" , "b" ]) # allowed
183
183
# Subset formatting
184
- with pytest . raises ( ValueError ):
185
- axs [1 :]. format ( title = [ "c" , "d" , "e" ])
184
+ axs [ 1 :]. format ( title = [ "c" , "d" , "e" ]) # allowed but implicit does not use e
185
+ assert axs [- 1 ]. get_title () == "d"
186
186
# Shorter than number of axs
187
187
with pytest .raises (ValueError ):
188
188
axs .format (title = ["a" ])
189
- # Longer than number of axs
190
- with pytest .raises (ValueError ):
191
- axs .format (title = ["a" , "b" , "c" , "d" ])
You can’t perform that action at this time.
0 commit comments