【文件属性】:
文件名称:python-highcharts:使用highchart.js在Python和IPython笔记本中进行绘图
文件大小:1.55MB
文件格式:ZIP
更新时间:2021-03-07 02:04:24
Python
Python高图
在Python或什至在IPython笔记本中,使用出色的库作为maplotlib的交互式替代。
安装
pip install charts
快速开始
首先导入库:
import charts
其次,从data模块中加载一些示例数据,并从options模块中加载一些默认选项:
aapl = charts . data . aapl ()
msft = charts . data . msft ()
ohlc = charts . data . ohlc ()
ohlc [ 'display' ] = False
series = [
aapl ,
msft ,
ohlc
]
最后绘制图表! 如果您在IPython笔记本中,请使\u7528show='inline'否则使\u7528show='inline' show='tab' 。
charts . plot