首页 > 其他 > 详细

GNUPlot绘制曲线

时间:2017-06-30 18:27:12      阅读:288      评论:0      收藏:0      [点我收藏+]

发现gnuplot在mac上编译安装相当方便,在线下为了測试java老堆和lucene索引大小,须要绘制两条线,可是直接点连的线很难看,所以后面使用贝塞尔曲线。

脚本例如以下:


#! /usr/local/bin/gnuplot -p


set terminal canvas;
set output "canvas.html"
set title "Illustration";
set xlabel "Time(Unit:second)";
set ylabel "Old Generation Heap Size/Index Size(Unit:GB)";

plot "OldGenerationHeap" using 1:2 smooth bezier, "IndexSize" using 1:2 smooth bezier;


秀秀最后成果:

技术分享

非常不错哦!

GNUPlot绘制曲线

原文:http://www.cnblogs.com/brucemengbm/p/7100072.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!