I would like like to save pyecharts figures. Here is my code:
Код: Выделить всё
from pyecharts.charts import Bar from pyecharts import options as opts from pyecharts.globals import ThemeType bar = ( Bar() .add_xaxis(['JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC']) .add_yaxis("Temperature Max", [-7,-6,-2,4,10,15,18,17,13,7,2,-3],color="#1565C0") .add_yaxis("Temperature Min", [-1,0,5,12,18,24,27,26,21,14,8,2],color='#80CBC4') .set_global_opts(title_opts=opts.TitleOpts(title="30-year temperature for Toronto”, subtitle=”Year 1981 to 2010")) ) bar.render_notebook() bar.render(path='snapshot.png') 
Источник: https://stackoverflow.com/questions/728 ... rts-as-png