通过http公开matplotlib图形
plotserver的Python项目详细描述
绘图服务器
=======
使用一行代码通过http公开matplotlib图形
安装
----
…代码块::shell
pip安装plotserver
示例用法
----
绘制Pylab环境
…代码块::python
作为PLS导入PlotServer
导入Pylab
Pylab.图([1,2,3,4,1,2,3,4])
pylab.xlabel(“数字”)
Pylab.ylabel(“值”)
使用Web服务器在http://0.0.0.0:8080上显示绘图/
请展示(Pylab)
绘制matplotlib图形
…代码块::python
作为PLS导入PlotServer
从matplotlib导入pyplot
fig=pyplot.figure()
轴=图GCA()
轴绘图([1,2,3,4,1,2,3,4])
使用Web服务器显示绘图,网址:http://127.0.0.1:9999/
请显示(图,host=“127.0.0.1”,端口=9999)
=======
使用一行代码通过http公开matplotlib图形
安装
----
…代码块::shell
pip安装plotserver
示例用法
----
绘制Pylab环境
…代码块::python
作为PLS导入PlotServer
导入Pylab
Pylab.图([1,2,3,4,1,2,3,4])
pylab.xlabel(“数字”)
Pylab.ylabel(“值”)
使用Web服务器在http://0.0.0.0:8080上显示绘图/
请展示(Pylab)
绘制matplotlib图形
…代码块::python
作为PLS导入PlotServer
从matplotlib导入pyplot
fig=pyplot.figure()
轴=图GCA()
轴绘图([1,2,3,4,1,2,3,4])
使用Web服务器显示绘图,网址:http://127.0.0.1:9999/
请显示(图,host=“127.0.0.1”,端口=9999)