gnuplot使用中的问题

来源:互联网 发布:云短信软件 编辑:程序博客网 时间:2024/05/29 13:41

1、with选项格式含义

plot 'delay' with linespoints lt 0 lw 2 pt 1 ps 1.5 

with选项格式: with <style> {linestyle| ls <line_style>} {linetype| lt <line_type>} {linewidth | lw <line-width>} {pointtype | pt <point-type>} {pointsize | ps <point_size>}

line_style:

lines : 将相邻的点以线条连接。如 plot sin(x) with lines

points : 将每一点以一符号绘上。如 plot sin(x) with points

linespoints : 同时具有 lines  points 的功能。

impulses : 将每一点画一垂直线至 X 轴。如 plot sin(x) with impulses

dots : 将每一点绘一细点。如 plot sin(x) with dots

steps : 以垂直线及水平线各一条来连接两点,形成梯形。如连接 (x1,y1)(x2,y2)两点,以(x1,y1)(x2,y1)(x2,y1)(x2,y2) 两线段连接。如 plot sin(x) with steps

errorbars : 对每一点坐标值 (x,y),画一由 (x,ylow)  (x,yhigh) 的线段。并在线段两端做上 tic mark。如plot sin(x) with errorbars

boxes : The boxes style draws a box centred about the given x coordinate from the yaxis to the given y coordinate.plot sin(x) with boxes

boxerrorbars : 组合 errorbars  boxes 两者功能。如 plot sin(x) with boxerrorbars

line_type:在此类型中主要设置线条的颜色,具体对应如下:


pointtype :


参考:http://blog.chinaunix.net/uid-26263325-id-3233945.html