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

Skip to content

Commit e27da80

Browse files
committed
Revising test_bar in test_datetime.py
1 parent 86b12d3 commit e27da80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_bar(self):
106106

107107
x = np.datetime64(datetime.datetime(2020, 6, 1))
108108
ax1.bar(x_dates, x_ranges, width=np.timedelta64(4, "D"))
109-
ax2.bar(np.arange(4), x_dates, bottom=x)
109+
ax2.bar(np.arange(4), x_dates - x, bottom=x)
110110

111111
@pytest.mark.xfail(reason="Test for bar_label not written yet")
112112
@mpl.style.context("default")

0 commit comments

Comments
 (0)