Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d00127e

Browse files
committed
Add test
1 parent c250254 commit d00127e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/matplotlib/tests/test_units.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,8 @@ def test_jpl_barh_units():
127127
fig, ax = plt.subplots()
128128
ax.barh(x, w, left=b)
129129
ax.set_xlim([b-1*day, b+w[-1]+1*day])
130+
131+
132+
def test_emtpy_arrays():
133+
# Check that plotting an empty array with a dtype works
134+
plt.scatter(np.array([], dtype='datetime64[ns]'), np.array([]))

0 commit comments

Comments
 (0)