首页 > 其他 > 详细

GNUPlot绘制曲线

时间:2014-11-08 10:32:38      阅读:237      评论: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;


秀秀最后成果:

bubuko.com,布布扣

很不错哦!

GNUPlot绘制曲线

原文:http://blog.csdn.net/jollyjumper/article/details/40917889

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