Skip to content

Commit

Permalink
changed month abbreviations in month_plot
Browse files Browse the repository at this point in the history
to use three letter abbreviations (i.e. 'Jan', 'Feb') instead a single letter abbreviation (i.e. 'j', 'f')
  • Loading branch information
oswaldochan committed Sep 25, 2020
1 parent 2322d35 commit 3ad46aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statsmodels/graphics/tsaplots.py
Expand Up @@ -407,7 +407,7 @@ def month_plot(x, dates=None, ylabel=None, ax=None):
else:
x = pd.Series(x, index=pd.PeriodIndex(dates, freq="M"))

xticklabels = ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"]
xticklabels = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"]
return seasonal_plot(
x.groupby(lambda y: y.month), xticklabels, ylabel=ylabel, ax=ax
)
Expand Down

0 comments on commit 3ad46aa

Please sign in to comment.