Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to get calmap to plot heatmap?

I am trying to make a calendar heatmap using calmap. I copied the example code that was direclty given from their site and it complies, but no plot generated. I attempted this on two different systems, both Ubuntu and Windows, and still no plot generated. It’s really odd to me. I have no issue plotting using matplotlib and others. Both systems use python 2.7 and python 3.5/3.6. Tried on both pythons and still no success.

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.calendarplot(events)

If someone can please help me out it would be much appreciated. Something like this should be so simple yet I’ve been trouble shooting this issue for an hour LUL xD

Comments