import numpy as np; np.random.seed(sum(map(ord, 'calmap')))
import pandas as pd
import calmap
all_days = pd.date_range('1/15/2014', periods=700, freq='D')
days = np.random.choice(all_days, 500)
events = pd.Series(np.random.randn(len(days)), index=days)
calmap.yearplot(events, year=2015)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-14-48f9d523cd2f> in <module>()
----> 1 calmap.yearplot(events, year=2014)
~/anaconda3/lib/python3.6/site-packages/calmap/__init__.py in yearplot(data, year, how, vmin, vmax, cmap, fillcolor, linewidth, linecolor, daylabels, dayticks, monthlabels, monthticks, ax, **kwargs)
144 # background so in that case we default to white which will usually be
145 # the figure or canvas background color.
--> 146 linecolor = ax.get_axis_bgcolor()
147 if ColorConverter().to_rgba(linecolor)[-1] == 0:
148 linecolor = 'white'
AttributeError: 'AxesSubplot' object has no attribute 'get_axis_bgcolor'