|
40 | 40 | from .. import constructor |
41 | 41 | from .. import legend as plegend |
42 | 42 | from .. import ticker as pticker |
| 43 | +from ..colorbar import ( |
| 44 | + UltraColorbar, |
| 45 | + _apply_inset_colorbar_layout, |
| 46 | + _determine_label_rotation, |
| 47 | + _get_axis_for, |
| 48 | + _get_colorbar_long_axis, |
| 49 | + _legacy_inset_colorbar_bounds, |
| 50 | + _reflow_inset_colorbar_frame, |
| 51 | + _register_inset_colorbar_reflow, |
| 52 | + _solve_inset_colorbar_bounds, |
| 53 | +) |
43 | 54 | from ..config import rc |
44 | 55 | from ..internals import ( |
45 | 56 | _kwargs_to_args, |
|
59 | 70 | ) |
60 | 71 | from ..ultralayout import KIWI_AVAILABLE, ColorbarLayoutSolver |
61 | 72 | from ..utils import _fontsize_to_pt, edges, units |
62 | | -from ..colorbar import ( |
63 | | - UltraColorbar, |
64 | | - _apply_inset_colorbar_layout, |
65 | | - _determine_label_rotation, |
66 | | - _get_axis_for, |
67 | | - _get_colorbar_long_axis, |
68 | | - _legacy_inset_colorbar_bounds, |
69 | | - _register_inset_colorbar_reflow, |
70 | | - _reflow_inset_colorbar_frame, |
71 | | - _solve_inset_colorbar_bounds, |
72 | | -) |
73 | 73 |
|
74 | 74 | try: |
75 | 75 | from cartopy.crs import CRS, PlateCarree |
@@ -3810,8 +3810,6 @@ def _get_pos_from_locator( |
3810 | 3810 | y = y_pad |
3811 | 3811 | return (x, y) |
3812 | 3812 |
|
3813 | | -<<<<<<< refactor/ultra-colorbar |
3814 | | -======= |
3815 | 3813 |
|
3816 | 3814 | def _get_axis_for( |
3817 | 3815 | labelloc: str, |
@@ -4335,7 +4333,6 @@ def _reflow_inset_colorbar_frame( |
4335 | 4333 | cb_width = width |
4336 | 4334 | cb_height = length |
4337 | 4335 |
|
4338 | | ->>>>>>> main |
4339 | 4336 | renderer = cax.figure._get_renderer() |
4340 | 4337 | if hasattr(colorbar, "update_ticks"): |
4341 | 4338 | colorbar.update_ticks(manual_only=True) |
|
0 commit comments