Commit d800d87
fix: use draw_labels=['left', 'bottom'] instead of post-setting top_labels
Setting gl.top_labels = None after calling ax.gridlines(draw_labels=True)
is invalid in newer Cartopy (only bool/list/str are accepted) and caused
blank plots. Use the Cartopy draw_labels list API introduced in Cartopy
0.20 to request labels only on left and bottom sides directly, removing
the need for post-hoc patching and the workarounds for Bbox.union errors.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f0b3573 commit d800d87
1 file changed
Lines changed: 1 addition & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2612 | 2612 | | |
2613 | 2613 | | |
2614 | 2614 | | |
2615 | | - | |
2616 | | - | |
2617 | | - | |
2618 | | - | |
2619 | | - | |
2620 | | - | |
2621 | | - | |
2622 | | - | |
2623 | | - | |
2624 | | - | |
2625 | | - | |
2626 | | - | |
2627 | | - | |
2628 | | - | |
2629 | | - | |
2630 | | - | |
2631 | | - | |
2632 | | - | |
2633 | | - | |
2634 | | - | |
2635 | | - | |
2636 | | - | |
2637 | | - | |
2638 | | - | |
| 2615 | + | |
2639 | 2616 | | |
2640 | 2617 | | |
2641 | 2618 | | |
| |||
0 commit comments