plot \ -0.25*0.02*x/(1+x/400) title "theoretish" with lines linewidth 2, \ -1/4*0.02*x/(1+x/400) title "theoretish" with lines linewidth 2 :em11: 第一条是正确的,第二条沿x轴画了一条…………………………请问为什么? Terminal的截图: [quote] wu@UNIX ~/project/Bericht/current/EMTv4/Data/4.1.a.strom $ gnuplot G N U P L O T Version 4.2 patchlevel 4 last modified Sep 2008 System: Linux 2.6.28-ge...
本帖最后由 aidixiao 于 2012-12-11 22:13 编辑 使用下面的代码: #!/usr/bin/env python import gnuplot, gnuplot.funcutils from numpy import * gp = gnuplot.gnuplot() gp('set data style lines') data1 = [[0, 0], [1, 1], [2, 4], [3, 9], [4, 16]] plot1 = gnuplot.PlotItems.Data(data1, with_="lines", title="Quadratic") data2 = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] gp.plot(plot1,data2) 能正常画图,就是...
http://phi.sinica.edu.tw/aspac/reports/95/95006/chap2.html#2.3 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6979/showart_184877.html
使用数据图表处理工具gnuplot,结合Perl脚本,可以随意绘制自己的柱状图。 1. mkbar --- Perl script 2. mkbar.dat --- Config file 3. README --- readme * mkbar #!/usr/bin/perl ############################################################################### # COPYRIGHT GPLv2 2008-2010 # File name: mkbar # Summary: Create bar chart. # Author: poseidonyu ##################################...
几天前,我写了个抓取此博客总访问量(见左下角)信息的脚本,并把它扔到了 crontab 中,每隔20min执行一次。日志格式如下: 2009-05-03 01:50 1620 2009-05-03 02:10 1620 2009-05-03 02:30 1621 2009-05-03 02:50 1622 2009-05-03 03:10 1624 虽然人类也可以轻易看懂,不过成百上千行的日志,看起来太累了,也太不直观了。所以急需画张图来分析一下。想到了传说中牛气冲天,无比强大的 gnuplot ,正好可以趁这个机会学一学。 读了...
图形输出到文件 set terminal postscript eps enhanced color solid set output "file.eps" 其中第一条命令为设置终端模式,post即为postscript模式,这是输出到ps或eps文件必须有的。后面的eps,color,solid以及enh选项均可以有或没有,根据你的需要。eps表示输出为eps文件,没有就输出为ps文件;color表示输出图形为彩色,不用就会保存为黑白的;solid表示输出图中的所有线都用实线,不用则除了第一条线为实线外,其它的均用不同...
本文转载自: http://yinjilong.blogbus.com/logs/509772.html 【thanks】 使用 gnuplot 4.0 将数据和函数转换为专业的图表,gnuplot 4.0 是一种免费分发的绘图工具。本文是 gnuplot 的实践指南,着重讲述了有效使用此工具的一些惯例。 gnuplot 是一种免费分发的绘图工具,可以移植到各种主流平台。它可以下列两种模式之一进行操作:当需要调整和修饰图表使其正常显示时,通过在 gnuplot 提示符中发出命令,可以在交互模式下操作该...