Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea4274e commit 66b5d8dCopy full SHA for 66b5d8d
lib/matplotlib/tests/test_axes.py
@@ -1598,9 +1598,6 @@ def test_boxplot_dates_pandas(pd):
1598
1599
def test_bar_pandas(pd):
1600
# Smoke test for pandas
1601
-
1602
- fig, ax = plt.subplots()
1603
1604
df = pd.DataFrame(
1605
{'year': [2018, 2018, 2018],
1606
'month': [1, 1, 1],
@@ -1612,8 +1609,12 @@ def test_bar_pandas(pd):
1612
1609
dates = monthly.index
1613
1610
forecast = monthly['value']
1614
1611
baseline = monthly['value']
+
+ pd.plotting.register_matplotlib_converters()
+ fig, ax = plt.subplots()
1615
ax.bar(dates, forecast, width=10, align='center')
1616
ax.plot(dates, baseline, color='orange', lw=4)
1617
+ pd.plotting.deregister_matplotlib_converters()
1618
1619
1620
@image_comparison(['hist_log'], remove_text=True)
0 commit comments