Visdom pyhton可视化工具
< 返回列表时间: 2020-07-14来源:OSCHINA
Visdom:
https://github.com/facebookresearch/visdom

1. 安装 Visdom:
pip install visdom

2. 启动visdom服务:
visdom

3. 编写visdom脚本 pytest.py:
from visdom import Visdom import numpy as np import math vis = Visdom() # 单个条形图 vis.bar( X =np.random.rand( 20 )) # 堆叠条形图 vis.bar( X =np.abs(np.random.rand( 5 , 3 )), opts = dict ( stacked = True , legend =[ 'Sina' , '163' , 'AliBaBa' ], rownames =[ '2013' , '2014' , '2015' , '2016' , '2017' ] ) ) # 分组条形图 vis.bar( X =np.random.rand( 20 , 3 ), opts = dict ( stacked = False , legend =[ 'A' , 'B' , 'C' ] ) )

4. 运行脚本pytest.py:
python pytest.py

5. web端访问:
http://localhost:8097/
热门排行