Skip to content

Commit ba980d2

Browse files
committed
formatting
1 parent 74a1fc0 commit ba980d2

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

mplotutils/cartopy_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER
1111

12-
# ==================================================================================================
12+
# =============================================================================
1313

1414

1515
def sample_data_3d(nlons, nlats):
@@ -32,7 +32,7 @@ def sample_data_3d(nlons, nlats):
3232

3333
return lon, lat, data
3434

35-
# ==================================================================================================
35+
# =============================================================================
3636

3737

3838
# from xarray
@@ -77,7 +77,7 @@ def _infer_interval_breaks(coord, axis=0):
7777
return np.concatenate([first, coord[trim_last] + deltas, last], axis=axis)
7878

7979

80-
# ==================================================================================================
80+
# =============================================================================
8181

8282

8383
def cyclic_dataarray(da, coord='lon'):

mplotutils/colorbar_utils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,20 +301,19 @@ def _parse_shift_shrink(shift, shrink):
301301
shrink = 0
302302

303303
shift = shrink / 2.
304-
304+
305305
else:
306306
if shrink is None:
307307
shrink = shift
308-
309-
308+
310309
assert (shift >= 0.) & (shift <= 1.), "'shift' must be in 0...1"
311310
assert (shrink >= 0.) & (shrink <= 1.), "'shrink' must be in 0...1"
312311

313312
if shift > shrink:
314-
msg = ("Warning: 'shift' is larger than 'shrink', colorbar\n"
313+
msg = ("Warning: 'shift' is larger than 'shrink', colorbar\n"
315314
"will extend beyond the axes!")
316315
print(msg)
317-
316+
318317
return shift, shrink
319318

320319
# ==================================================================================================

0 commit comments

Comments
 (0)