Commit 17eeeb6
committed
fix(facet): skip tick-label padding when axis text is blank
theme(text=element_blank()) removes the specific axis-text themeables,
so theme.get_margin('axis_text_x') resolves to None and
set_limits_breaks_and_labels crashed on None.pt. Guard each axis with
theme.T.is_blank(...) and skip tick_params when the axis text is blank
(it is not drawn, so the pad is irrelevant).1 parent 0795dd7 commit 17eeeb6
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
358 | 361 | | |
359 | 362 | | |
360 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
0 commit comments