Commit 95db12f
[fix] Spine.set_bounds() does not take parameter **None** as expected (matplotlib#30330)
* extract a _get_bounds_or_viewLim function, which is used both in set_bounds and _adjust_location
* add tests
* add doc str for _get_bounds_or_viewLim
* Update lib/matplotlib/tests/test_spines.py
Set appropriate bottom_bound in the test.
Co-authored-by: Ruth Comer <10599679+rcomer@users.noreply.github.com>
* Update lib/matplotlib/spines.py
The error is mainly raised for user- or third party-defined spines. 'circle' is already handled in two function callers.
Co-authored-by: Ruth Comer <10599679+rcomer@users.noreply.github.com>
* regroup spine tests
---------
Co-authored-by: Ruth Comer <10599679+rcomer@users.noreply.github.com>1 parent fec45c6 commit 95db12f
2 files changed
+46
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
240 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
248 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
249 | 259 | | |
250 | 260 | | |
251 | 261 | | |
| |||
424 | 434 | | |
425 | 435 | | |
426 | 436 | | |
427 | | - | |
| 437 | + | |
428 | 438 | | |
429 | 439 | | |
430 | 440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
0 commit comments