gnuplot绘图工具的使用

1, gnuplot的各种参摄设置

2, gnuplot能画那些图

3, gnuplot使用的命令

4, gnuplot的输出格式


一个例子:

文件:data

2.2 1.6
3.5 3.4
5.2 4.3
7.1 5.7
8.6 6.8


文件: boxplot.plot

set terminal gif size 800, 800
set output "data.gif"
set title  "voq"
set xlabel "time"
set ylabel "value"
set grid
plot "data" title 'voq_len' with boxes fs solid
exit


命令行:

gnuplot boxplot.plot

输出plot好的结果




参考:

http://wenku.baidu.com/link?url=JhypIq5_BILvHvt6jIfricArSB1cso1n5dDMJl2q2oML2oFhocY0kgV5fX6ViWuUtN7cSM6aWMzeGEtsgFinOIyiqLI9kPYMo80vr_RaJEm

http://wenku.baidu.com/link?url=6uPfqNdNj6DXgOnDNvh01ZmUYhpswMR0xhVFRf64E4NxcrpYVqiA32HU8DJp2nSDgYm8uOdPLJjjRrr6dUoigKk1iZwMIHlyOHfFmlY8EbK

程序员的绘图利器 — Gnuplot  http://blog.csdn.net/zhangskd/article/details/9032769
gnuplot简单数据绘图: http://blog.csdn.net/ksearch/article/details/23282397


gnuplot 让您的数据可视化  http://www.ibm.com/developerworks/cn/linux/l-gnuplot/

一张图画多个小图的例子

set xrange [-pi:pi]
# Uncomment the following to line up the axes
# set lmargin 6
# Gnuplot recommends setting the size and origin before going to
# multiplot mode
# This sets up bounding boxes and may be required on some terminals
set size 1,1
set origin 0,0
# Done interactively, this takes gnuplot into multiplot mode
# and brings up a new prompt ("multiplot >" instead of "gnuplot >")
set multiplot
# plot the first graph so that it takes a quarter of the screen
set size 0.5,0.5
set origin 0,0.5
plot sin(x)
# plot the second graph so that it takes a quarter of the screen
set size 0.5,0.5
set origin 0,0
plot 1/sin(x)
# plot the third graph so that it takes a quarter of the screen
set size 0.5,0.5
set origin 0.5,0.5
plot cos(x)
# plot the fourth graph so that it takes a quarter of the screen
set size 0.5,0.5
set origin 0.5,0
plot 1/cos(x)
# On some terminals, nothing gets plotted until this command is issued
unset multiplot
# remove all customization
reset

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值