File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1598,9 +1598,6 @@ def test_boxplot_dates_pandas(pd):
1598
1598
1599
1599
def test_bar_pandas (pd ):
1600
1600
# Smoke test for pandas
1601
-
1602
- fig , ax = plt .subplots ()
1603
-
1604
1601
df = pd .DataFrame (
1605
1602
{'year' : [2018 , 2018 , 2018 ],
1606
1603
'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' ]
1612
+
1613
+ pd .plotting .register_matplotlib_converters ()
1614
+ fig , ax = plt .subplots ()
1615
1615
ax .bar (dates , forecast , width = 10 , align = 'center' )
1616
1616
ax .plot (dates , baseline , color = 'orange' , lw = 4 )
1617
+ pd .plotting .deregister_matplotlib_converters ()
1617
1618
1618
1619
1619
1620
@image_comparison (['hist_log' ], remove_text = True )
You can’t perform that action at this time.
0 commit comments