Chinaunix首页 | 论坛 | 博客
  • 博客访问: 772706
  • 博文数量: 217
  • 博客积分: 2401
  • 博客等级: 大尉
  • 技术积分: 2030
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-16 06:58
个人简介

怎么介绍?

文章分类

全部博文(217)

文章存档

2023年(2)

2022年(3)

2021年(29)

2020年(12)

2019年(5)

2018年(5)

2017年(5)

2016年(3)

2015年(6)

2014年(12)

2013年(16)

2012年(9)

2011年(6)

2010年(15)

2009年(30)

2008年(59)

我的朋友

分类:

2008-03-16 16:55:17

~hpgavin/gnuplot.html

set terminal postscript eps enhanced            //output to a .ps file;
set output "aaa.ps"                        //name of the .ps file
set multiplot                              //multiple plot in one file
set style line 2 lt 1 lw 2                //line style 2 = lt 1 lw 2
plot "abcd.dat" ls 2                       // plot data in "abcd.dat" with line style 2
set pointsize 1.5                                                          //change pointsize 

unset multiplot                           //stop multiplot
set terminal x11                           // standard window output

      Create a title:                  > set title "Force-Deflection Data" 
Put a label on the x-axis: > set xlabel "Deflection (meters)"
Put a label on the y-axis: > set ylabel "Force (kN)"
Change the x-axis range: > set xrange [0.001:0.005]
Change the y-axis range: > set yrange [20:500]
Have Gnuplot determine ranges: > set autoscale
Move the key: > set key 0.01,100
Delete the key: > unset key
Put a label on the plot: > set label "yield point" at 0.003, 260
Remove all labels: > unset label
Plot using log-axes: > set logscale
Plot using log-axes on y-axis: > unset logscale; set logscale y
Change the tic-marks: > set xtics (0.002,0.004,0.006,0.008)
Return to the default tics: > unset xtics; set xtics auto

plot  "force.dat" using 1:2 title 'Column', \                        //specify which colume of data to use,注意逗号, \  是断行符,后面不要打空格
"force.dat" using 1:3 title 'Beam'

gnuplot> plot "test.dat" using 1:2 notitle with points, \ //draw the data with points
> "test.dat" using 1:2 smooth csplines \ //draw the data with splines, connect all of them
> title "spline" with lines,\
> "test.dat" using 1:2 smooth bezier \ //draw the data with bezier, connect all of them
> title "bezier" with lines
阅读(883) | 评论(0) | 转发(0) |
0

上一篇:gnuplot C++

下一篇:vim 反排行顺序

给主人留下些什么吧!~~