1. 首页
  2. 数据库
  3. 其它
  4. termplotlib:在命令行上绘图 源码

termplotlib:在命令行上绘图 源码

上传者: 2021-02-09 11:19:21上传 ZIP文件 27.73KB 热度 9次
termplotlib termplotlib是一个Python库,可满足您所有终端绘图需求。 它旨在像一样工作。 线图 对于线图,termplotlib依赖于 。 安装后,代码 import termplotlib as tpl import numpy x = numpy . linspace ( 0 , 2 * numpy . pi , 10 ) y = numpy . sin ( x ) fig = tpl . figure () fig . plot ( x , y , label = "data" , width = 50 , height = 15 ) fig . show (
用户评论