怎么介绍?
分类:
2008-03-16 16:55:17
set pointsize 1.5 //change pointsize
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