File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ def _infer_interval_breaks(coord, axis=0):
45
45
if not _is_monotonic (coord , axis = axis ):
46
46
raise ValueError (
47
47
"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 "
49
49
"results. Consider calling the `sortby` method on "
50
50
"the input DataArray. To plot data with categorical "
51
51
"axes, consider using the `heatmap` function from "
52
- "the `seaborn` statistical plotting library." % axis
52
+ "the `seaborn` statistical plotting library."
53
53
)
54
54
55
55
coord = np .asarray (coord )
@@ -67,11 +67,11 @@ def _infer_interval_breaks(coord, axis=0):
67
67
def _is_monotonic (coord , axis = 0 ):
68
68
"""
69
69
>>> _is_monotonic(np.array([0, 1, 2]))
70
- True
70
+ np.True_
71
71
>>> _is_monotonic(np.array([2, 1, 0]))
72
- True
72
+ np.True_
73
73
>>> _is_monotonic(np.array([0, 2, 1]))
74
- False
74
+ np.False_
75
75
"""
76
76
coord = np .asarray (coord )
77
77
You can’t perform that action at this time.
0 commit comments