Skip to content

Commit 833f4da

Browse files
authored
fix doctests (#15)
1 parent 4532139 commit 833f4da

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mplotutils/cartopy_utils.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,14 @@ def cyclic_dataarray(da, coord="lon"):
127127
>>> data = xr.DataArray([[1, 2, 3], [4, 5, 6]],
128128
... coords={'x': [1, 2], 'y': range(3)},
129129
... dims=['x', 'y'])
130-
>>> cd = cyclic_dataarray(data, 'y')
131-
>>> print cd.data
130+
>>> data_cyclic = cyclic_dataarray(data, 'y')
131+
>>> data_cyclic
132+
<xarray.DataArray (x: 2, y: 4)>
132133
array([[1, 2, 3, 1],
133134
[4, 5, 6, 4]])
135+
Coordinates:
136+
* x (x) int64 1 2
137+
* y (y) int64 0 1 2 3
134138
135139
Notes
136140
-----

0 commit comments

Comments
 (0)