安装部署:

#centos/redhat
yum install gnuplot
#macos
brew install gnuplot
#ubuntu
sudo apt install gnuplot

数据文件

ashe@macos:~/data/test/test_gnuplott $ cat t1.txt
1     1   2.1
2     4   4.5
3     900   6
4    16   8
5    25   10
6    36   11
7    49   12
8    64   13
9    81   14
10  100   15

双曲线

plot 't1.txt' using  1:2 with linespoints title 'a' ,'t1.txt' using 1:3 with linespoints title 'b'

带纵坐标值的双曲线

 plot "t1.txt" using 1:2 with linespoints linecolor 3 linewidth 1 pointtype 5 pointsize 1, "" using 1:2:2 with labels title 'a',"t1.txt" using 1:3 with linespoints linecolor 3 linewidth 1 pointtype 5 pointsize 1, "" using 1:3:3 with labels title 'b'

shell一键执行获取图片

ashe@macos:~/data/test/test_gnuplott $ gnuplot -e "set terminal jpeg;set output 'ashe.jpeg';plot 't1.txt' using 1:2 with linespoints linecolor 3 linewidth 1 pointtype 5 pointsize 1, '' using 1:2:2 with labels title 'a','t1.txt' using 1:3 with linespoints linecolor 3 linewidth 1 pointtype 5 pointsize 1, '' using 1:3:3 with labels title 'b'"
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200721225215925.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3N1bl9hc2hl,size_16,color_FFFFFF,t_70)

gnuplot -e "set xlabel 'threads';set ylabel 'tps'; set key top left;set size ratio 0.7;set terminal png;set output 'ashe.png';plot 'res-1.txt'  using 1:2:2 with labels title '', '' using 1:2 with linespoints linecolor 3 linewidth 1 pointtype 5 pointsize 0.2  title 'disk-m','res-2.txt'  using 1:2:2 with labels title '', '' using 1:2 with linespoints linecolor 5 linewidth 1 pointtype 5 pointsize 0.2 title 'disk-ssd'"

gnuplot 使用示例相关推荐

  1. 谷歌play支付_Google Play的新功能

    谷歌play支付 Google mentioned that in the last 21 months, there have been 116 billion downloads of the a ...

  2. Linux 数据可视化工具

    Linux 上用来实现数据的图形可视化的应用程序有很多,从简单的 2-D 绘图到 3-D 制图,再到科学图形编程和图形模拟.幸运的是,这方面的工具有很多开放源码实现,包括 gnuplot.GNU Oc ...

  3. python开源项目及示例代码

    1 算法 1.1 字符串处理 re 正则表达式的标准库. StringIO / cStringIO 以读写文件的方式来操作字符串(有点类似于内存文件). cStringIO 是 C 语言实现的,提供高 ...

  4. python项目实例代码-python开源项目及示例代码

    下面列出的各种 Python 库/模块/工具,如果名称带超链接,说明是第三方的:否则是 Python 语言内置的. 1 算法 1.1 字符串处理 re 正则表达式的标准库. StringIO / cS ...

  5. 【转载】使用 gnuplot 在网页中显示数据

    来源:http://www.ibm.com/developerworks/cn/aix/library/au-gnuplot/ 简介 gnuplot 是一个用于生成趋势图和其他图形的工具.它通常用于收 ...

  6. 超详细的gnuplot使用教程【2】

    超详细的gnuplot使用教程 1.gnuplot参数介绍及演示 1.1首先来解释一下会用到的各类参数以及其解释 1.2 画图实际测试 1.3 其它参数介绍(约定范围.坐标轴设定) 1.3.1 约束画 ...

  7. 【gnuplot】gnuplot安装与简易使用

    gnuplot安装(202203) 文章目录 gnuplot安装(202203) 安装与使用 常见错误 参考 gnuplot-tutorial-part 其他阅读 安装 函数 Plot &&a ...

  8. gnuplot用C语言程序画图,gnuplot使用

    直接用yum安装gnuplot即可,例如 sudo sh -c "yum install gnuplot.x86_64 " 安装以后就可以使用了 编写gnuplot脚本 # grp ...

  9. Linux画图工具gnuplot

    现在在网上可以找的科学作图软件有不少,其中不乏优秀者,Win平台上有大名鼎鼎的Origin.Tecplot.SigmaPlot等,类UNIX上有LabPlot.gnuplot等.其他的常见的计算软件如 ...

最新文章

  1. qt中定时器Timer的使用
  2. Eigen 模板库的简介
  3. mysql maria引擎_MySQL体系结构和存储引擎概述
  4. 在Ubuntu Server 12.04 LTS上搭建可远程访问的Postgresql 9.1环境
  5. 高通在物联网领域已经深耕多年
  6. 计算机学院吉祥物意见征集,“我的学校我做主 ——吉祥物征集”启事
  7. SAP License:SAP精细化的应收付及要素为根设计思想
  8. 视觉模型精度如何更上一层楼?百度技术专家实战演示调参技巧
  9. 8年软件测试工程师感悟:与薪资相匹配的永远是实力
  10. 【PTAL2-001】紧急救援(Dijkstra+最短路径的条数+最短路径中点权之和的最大值)
  11. 软件测试:测试用例八大要素模板
  12. android 激光打印机,#本站首晒# 安卓端无线打印的方案选择 兄弟 DCP1618W 一体机...
  13. 购买地铁车票的规定如下: 乘1-4站,3元/位;乘5-9站,4元/位; 乘9站以上,5元/位。 输入乘坐人数(per_num)和乘坐站数(sta_num), 计算购买地铁车票需要的总金额,并将计算结果
  14. 根据excel模板导出多sheet且生成条形码或二维码插入excel指定位置中
  15. css中相对长度单位_看看CSS中的长度单位
  16. 全球每日被黑站点一览表!
  17. How To Verify the Word Size (32bit vs 64bit) of the Oracle Binary on MS Windows systems (文档 ID 46506
  18. ag-grid在Vue项目中的基本使用
  19. c语言设计程序实现顺序冒泡_计算机C语言编程设计专业知识题库汇总
  20. 人脸服务器如何与门禁系统对接,安全升级!人脸识别门禁终端集门禁考勤访客对讲一步到位...

热门文章

  1. 将谷歌浏览器 Chrome 已安装的插件打包成 crx 给其它电脑离线安装 +【怎么安装Chrome插件】安装Chrome第三方插件
  2. 读研攻略(7)—从0到1,研究生第一篇SCI的诞生
  3. 第二十三章 Unity 材质
  4. CSS让行内元素撑满整个视口
  5. 宇视科技线上c语言笔试答案,宇视科技2016招聘试题.docx
  6. SSM必备基本知识总结!
  7. window global
  8. “”中国制造“”专用高速磁盘阵列存储服务器
  9. Java简单的对外接口验签
  10. Golang的一个简单实用的http客户端库httpc