File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ pandas 0.13
74
74
(:issue: `4102 `, :issue: `4014 `) in ``*.hist `` plotting methods
75
75
- Fixed bug in ``PeriodIndex.map `` where using ``str `` would return the str
76
76
representation of the index (:issue: `4136 `)
77
+ - Fixed test failure ``test_time_series_plot_color_with_empty_kwargs `` when
78
+ using custom matplotlib default colors (:issue: `4345 `)
77
79
- Fix running of stata IO tests. Now uses temporary files to write
78
80
(:issue: `4353 `)
79
81
- Fixed an issue where ``DataFrame.sum `` was slower than ``DataFrame.mean ``
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ Bug Fixes
51
51
- Fixed bug in ``PeriodIndex.map`` where using ``str`` would return the str
52
52
representation of the index (:issue:`4136`)
53
53
54
+ - Fixed test failure ``test_time_series_plot_color_with_empty_kwargs`` when
55
+ using custom matplotlib default colors (:issue:`4345`)
56
+
54
57
- Fix running of stata IO tests. Now uses temporary files to write
55
58
(:issue:`4353`)
56
59
Original file line number Diff line number Diff line change @@ -917,15 +917,18 @@ def test_time_series_plot_color_kwargs(self):
917
917
self .assert_ (line .get_color () == 'green' )
918
918
919
919
def test_time_series_plot_color_with_empty_kwargs (self ):
920
+ import matplotlib as mpl
920
921
import matplotlib .pyplot as plt
922
+
923
+ def_colors = mpl .rcParams ['axes.color_cycle' ]
921
924
922
925
plt .close ('all' )
923
926
for i in range (3 ):
924
927
ax = Series (np .arange (12 ) + 1 , index = date_range ('1/1/2000' ,
925
928
periods = 12 )).plot ()
926
929
927
930
line_colors = [l .get_color () for l in ax .get_lines ()]
928
- self .assert_ (line_colors == [ 'b' , 'g' , 'r' ])
931
+ self .assertEqual (line_colors , def_colors [: 3 ])
929
932
930
933
@slow
931
934
def test_grouped_hist (self ):
You can’t perform that action at this time.
0 commit comments