Skip to content

Commit 377a436

Browse files
authored
xrcompat: fixes (#120)
1 parent 31272f2 commit 377a436

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mplotutils/xrcompat.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ def _infer_interval_breaks(coord, axis=0):
4545
if not _is_monotonic(coord, axis=axis):
4646
raise ValueError(
4747
"The input coordinate is not sorted in increasing "
48-
"order along axis %d. This can lead to unexpected "
48+
f"order along axis {axis}. This can lead to unexpected "
4949
"results. Consider calling the `sortby` method on "
5050
"the input DataArray. To plot data with categorical "
5151
"axes, consider using the `heatmap` function from "
52-
"the `seaborn` statistical plotting library." % axis
52+
"the `seaborn` statistical plotting library."
5353
)
5454

5555
coord = np.asarray(coord)
@@ -67,11 +67,11 @@ def _infer_interval_breaks(coord, axis=0):
6767
def _is_monotonic(coord, axis=0):
6868
"""
6969
>>> _is_monotonic(np.array([0, 1, 2]))
70-
True
70+
np.True_
7171
>>> _is_monotonic(np.array([2, 1, 0]))
72-
True
72+
np.True_
7373
>>> _is_monotonic(np.array([0, 2, 1]))
74-
False
74+
np.False_
7575
"""
7676
coord = np.asarray(coord)
7777

0 commit comments

Comments
 (0)