cutecharts这个包可以创建手绘风格的图,在某些场景下可视化效果可能更好.
用法比较简单,跟pyecharts用法非常相似.
使用前安装cutecharts
pip install cutecharts
导入包
from cutecharts.charts import Bar,Line,Pie,Radarfrom cutecharts.components import Pagefrom cutecharts.faker import Faker
示例:
柱状图
df=pd.DataFrame({
'x':['Sun.','Mon.','Tue.','Wed.','Thu.','Fri.','Sat.'], 'y':[33,38,39,40,42,44,48], 'z':[31,32,33.6,34,35,42,45]})#创建Bar chart = Bar('Dubai Temperature',width='600px',height='400px')chart.set_options( labels=list(df['x']), x_label='Days', y_label='Temperature (C°)' , colors=['