datafile="En-R_arm.dat"
outfile='fit_log_arm.dat'
##################################
set fit logfile outfile
set print outfile append
mean(x)=m ## 拟合后m即为Y的平均值
fit [x=0.325:0.345] mean(x) datafile using (4*3.1415926*3.1415926/$2**2):1 via m #range 可选
SST = FIT_WSSR ## 对平均值的方差, 即SST
f(x)=a*x+b ## 线性模型
FIT_LIMIT = 1e-6
fit [x=0.325:0.345] f(x) datafile using (4*3.1415926*3.1415926/$2**2):1 via a,b
SSE=FIT_WSSR ## 对线性模型的方差, 即SSE
print "R^2=", 1-SSE/SST
print "==========================================================="
another example with loop:
datafile="En-R_arm.dat"
outfile='fit_arm.dat'
##################################
set fit logfile outfile
set print outfile append
do for [i=0:2]{
colx=i*3+2
coly=i*3+1
mean(x)=m ## 拟合后m即为Y的平均值
fit mean(x) datafile using (4*3.1415926*3.1415926/(column(colx))**2):(column(coly)) via m
SST = FIT_WSSR ## 对平均值的方差, 即SST
f(x)=a*x+b ## 线性模型
FIT_LIMIT = 1e-6
fit f(x) datafile using (4*3.1415926*3.1415926/(column(colx))**2):(column(coly)) via a,b
SSE=FIT_WSSR ## 对线性模型的方差, 即SSE
print "cols ".colx.":".coly." R^2=", 1-SSE/SST
print "==========================================================="
}
set data style dots
set key outside box
#set border 5
set font "Arial, 40"
set terminal png small size 600,480
set output "C2_eig_band_-2.2254.png"
set arrow from 0.000000,0.0 to 4.01581339,0.0 nohead
set xrange [0: 4.01581339]
set yrange [-6.0 : 4.0 ]
unset xlabel ## "High symmetry K-points"
set ylabel "Energy (eV)"
unset key
set arrow from 1.46988978, -6.0 to 1.46988978 , 4.0 nohead
set arrow from 2.31853117, -6.0 to 2.31853117 , 4.0 nohead
set xtics ( " G " 0.0 , " M " 1.46988978 , " K " 2.31853117 , " G " 4.01581339 )
plot "C2_eig_band_-2.2254.dat" using 1:2 title "Bands" with lines linetype 3 linewidth 2
#set data style dots
### alpha {/Symbol a} or {$\alpha$} maybe
### angstrom set encoding iso_8859_1 and use {/305}
set term postscript eps color enhanced size 24cm,24cm
set output "sp_dos.eps"
set xrange [-6: 4]
set xtics 2 out nomirror font "Arial, 18"
set mxtics 2
set xlabel "Energy (eV)" font "Arial, 20"
set ylabel "DOS (arb. units)" font "Arial, 20"
set yrange [0 : 100 ]
set arrow from 0.0,0.0 to 0.0,100.0 nohead linestyle 0 linewidth 2
set ytics 20 out nomirror font "Arial, 18"
set mxtics 2
set size 0.98,1.0
set lmargin 10; set rmargin 0
set key box opaque width 5 height 2 right top ### right top or at 0.5,1.0
set label "(a)" at -5.5,80 font "Arial, 25"
plot "dos_0.1_ef-2.9596_all.dat" using 1:2 title "{/Arial=20 Total}" with lines linetype 3 linewidth 2, \
"dos_0.1_ef-2.9596_all.dat" using 1:13 title "{/Arial=20 p}}" with lines linetype 1 linewidth 2
set border lw 10 ### border width
set grid ### grids in xy plane
set view 85,45 ### view angle
set xyplane at -0.45 ### xy plane at z=-0.15
set xrange [-0.03000000 : 0.03000000]
set yrange [0.30588000 : 0.36588000]
set zrange [-0.45:-0.2]
set xlabel "k_x" font "Arial, 150" offset 35,-14 ### offset: label away from axis,need modification
set ylabel "k_y" font "Arial, 150" offset 0,-14 ### offset:need modification
set zlabel "Energy (eV)" font "Arial, 120" rotate by 90 center offset -40,0
set xtics 0.02 out scale 8 font "Arial, 120" offset 0,-8 ### tics on axis
set ytics 0.02 out scale 8 font "Arial, 120" offset 0,-8
set ztics 0.1 out scale 2 font "Arial, 120"
set mytics 2 ### minor parts between major tics
set mxtics 2
set mztics 2
set size 1.0,1.0
set lmargin 40; set rmargin 0
unset key ### not title
#set ticslevel 0 #
set dgrid3d 100,100 splines #number of grid mesh in the X- and Y-directions
## pm3d to draw a color-mapped 3D figure
set hidden3d ### hidden map behind
set contour surface
set cntrparam level incremental -0.45,0.025,-0.21
set cbrange [-0.45:-0.21]
#set colorbox vertical user origin 0.17, 0.49 size 0.04,0.12
unset colorbox ### do not show color box bar
set terminal png enhanced size 2723.4,2723.4 ## 80mm= 302.36 pixel
set output "Dirac_cone_dc.png"
splot "eig_bandsurf_022.dat" using 1:2:4 with pm3d , "eig_bandsurf_021.dat" using 1:2:4 with pm3d
#pause -1
#### /Times-Italic not support pngcairo, pdfcairo, epspairo {/Times-Italic=20 p}
set output ### exit plot
##set term wxt ### return windows
D:\Datas\Softs\DraftTools\dosbin\pstoedit
EnvSet, Path, %DosHome%\pstoedit;C:\"Program Files"\"MiKTeX 2.9"\miktex\bin\x64
http://www.ryanlerch.org/blog/simple-bubble-in-inkscape-orb-ball-bubble/
ffmpeg.exe -i inputfile.mp4 -s 800x800 -filter_complex [0:v]reverse[v] -map [v] -preset superfast reversed.mp4
ffmpeg.exe -i inputfile.mp4 -s 800x800 -vf reverse reversed.mp4
ffmpeg.exe -i inputfile.mp4 -s 800x800 -map 0 -c:v copy -af “areverse” reversed_audio.mp4
ffmpeg.exe -i inputfile.mp4 -s 800x800 -vf reverse -af areverse -preset superfast reversed.mp4
点击“Import data to Veusz”按钮, 弹出以下对话框, 选Standard.
转到Editing面板,
选择export按钮, 导出各种格式,一般png/tiff分辨率选600dpi,eps选300dpi.
选择Arrange Graphes in a gird, ,再在其下面新建add graph , 下面的与前面类似. 也可以将建好的graph拖入到grid下面.
画图
程序转换分辨率较低,使用照片
程序转换得到的tiff分辨率会较高。