我有一组数据,我想用pandas和calmap在日历热图上绘制某些日期。在
我试着抬头看pythonhosted.org/calmap/我在网上找到的就是这个例子。在
import numpy as np; np.random.seed(sum(map(ord, 'calmap')))
import pandas as pd
import calmap
from matplotlib import pyplot as plt
all_days = pd.date_range('1/1/2015', periods=700, freq='D')
days = np.random.choice(all_days, 500)
events = pd.Series(np.random.randn(len(days)), index=days)
f, ax = plt.subplots(1, 1, figsize = (15, 10))
calmap.yearplot(events, year=2015, ax=ax)
这个例子画出了随机的日子,但我只想在热度图上画出特定的日子。在
有没有什么网站可以让我了解更多关于这方面的参数?在
这些链接是我最喜欢的图表和绘图。在
http://seaborn.pydata.org/examples/index.html
https://scikit-learn.org/stable/auto_examples/index.html
https://docs.bokeh.org/en/latest/docs/gallery.html
相关问题 更多 >
编程相关推荐