gnuplot画一副小图所需要的命令

本文介绍如何使用Gnuplot进行多图布局绘制,包括设置多图模式、调整图表位置及尺寸等关键步骤,并通过实例展示了如何在同一页面中绘制不同数据集的四幅图表。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

gnuplot> set multiplot  //设置多图模式
multiplot> set origin 0.0,0.0 //设置起始位置
multiplot> set size 0.5,0.5  //设置图片大小
multiplot> set title "flows=3"  //设置标题
multiplot> set xlabel 'time(s)'  //设置x轴标题
multiplot> set ylabel 'queue_size(packets)' //设置y轴标题
multiplot> plot "temp.a" with linespoint  //开始画图

 

====================================================

一个画四幅图的完整应用

 

set multiplot
set key bottom   //把图例放在下面,默认是上面
set origin 0.0,0.5
set size 0.5,0.5 
set title "flows=3"
set xlabel 'time(s)'
set ylabel 'queue_size(packets)'
plot "temp3.a" title 'ave_queue' with linespoint   //title是图例的标题

set origin 0.5,0.5
set title "flows=10"
plot "temp10.a" title 'ave_queue' with linespoint 

set origin 0.0,0.0
set title "flows=30"
plot "temp30.a" title 'ave_queue' with linespoint 

set origin 0.5,0.0
set title "flows=50"
plot "temp50.a" title 'ave_queue' with linespoint

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值