ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

gnuplot examples

2019-03-20 12:51:00  阅读:391  来源: 互联网

标签:style set lc gnuplot lt lw rgb examples


xy plot

 

#set terminal jpeg
#set output 'alfa.jpg'
set terminal postscript eps font 24
set out 'U_vs_X_tsr5.eps'
#set terminal X11
set autoscale
unset log
unset label
unset pm3d
set key at graph .99, .58
set key spacing 1
set xtic auto
set ytic auto
set xlabel  "Normalized axial distance, X/D"
set xrange [*:*] 
# r0 initial pulse
set yrange [*:*] 
set ylabel "Normalized mean axial velocity, ~U{0.8-} / U{/Symbol \245}"
set style line 1 lt 1 lc rgb "black" lw 4 pt 1 ps 2
set style line 2 lt 2 lc rgb "black" lw 4  pt 3 ps 2
set style line 3 lt 3 lc rgb "black" lw 4  pt 5 ps 2
set style line 4 lt 4 lc rgb "black" lw 4  pt 7 ps 2
set style line 5 lt 5 lc rgb "black" lw 4
set style line 6 lt 6 lc rgb "brown" lw 4
#set label 1 "TSR 5"  at graph .8, .9
plot  "cfd/area_averaged_axial_mean_velocity_TI_1.txt" using 1:6 t "RANS, TI = 1%" ls 1 with lines,\
"park_model/wave_axial_velocity_tsr5_park_TI_1.txt" using 1:2 t "BEM-Park,TI=1%" ls 2 with lines,\
"cfd/area_averaged_axial_mean_velocity_TI_15.txt" using 1:6 t "RANS, TI = 15%" ls 3 with lines,\
"park_model/wave_axial_velocity_tsr5_park_TI_15.txt" using 1:2 t "BEM-Park,TI=15%" ls 4 with lines

 

 

example 2

important code

set key out horiz center top

 

#set terminal jpeg
#set output 'coeff_epp.jpg'
#set terminal png
#set output 'coeff_epp.png'
set terminal postscript eps font 24
set out 'coeff_naca0012.eps'
#set terminal X11
set autoscale
unset log
unset label
unset pm3d
set key out horiz center top
set xtic auto
set ytic auto
set xlabel "Tip speed ratio (TSR)"
set xrange [1:*] 
# r0 initial pulse
set yrange [-0.4:0.4] 
set ylabel "Rotor coefficient of power - C_P"
set style line 1 lt 1 lc rgb "black" lw 4 pointtype 2 pointsize 2
set style line 2 lt 2 lc rgb "black" lw 4 pointtype 7 pointsize 2
set style line 3 lt 3 lc rgb "black" lw 4 pointtype 6 pointsize 2
set style line 4 lt 4 lc rgb "black" lw 4 pointtype 8 pointsize 2
set style line 5 lt 5 lc rgb "black" lw 4 pointtype 10 pointsize 2
set style line 6 lt 6 lc rgb "brown" lw 4 pointtype 12 pointsize 2
set pointsize 2
set bars 3
plot  "naca0012/re_135k/zero/coeff.plt"  using 1:4 t "BEM {/Symbol q}_T = 0^{0}" ls 1 with lines  ,\
"RANS/Cp_Ct_tsr_one_untwist.dat"  using 1:2 t "RANS {/Symbol q}_T = 0^{0}" ls 1 with points  ,\
"naca0012/re_135k/fwd_2/coeff.plt"  using 1:4  t "BEM {/Symbol q}_T = 2^{0}" ls 2 with lines,\
"RANS/Cp_one_front_eldad_blade.dat" using 1:2 t "RANS {/Symbol q}_T = 2^{0}" ls 4 with points,\
"naca0012/re_135k/rear_2/coeff.plt"  using 1:4  t "BEM {/Symbol q}_T = -2^{0}" ls 3 with lines,\
"RANS/Cp_Ct_tsr_one_rear.dat" using 1:2 t "RANS {/Symbol q}_T = -2^{0}" ls 5 with points

 

 

标签:style,set,lc,gnuplot,lt,lw,rgb,examples
来源: https://www.cnblogs.com/code-saturne/p/10564176.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有