📄 gpdemo
字号:
#!/bin/csh# File to renderset source = Test.xls#Generate a unique html filename (/tmp/scriptname.pidnum.html)set com = $0set tmp = /tmp/$com:t.$$set gpcommand = $tmp.gpset gpdata = $tmp.datset gpout = $tmp.gif# create gnuplot command fileecho "set terminal gif small size 250,125 interlace xfdf5e6 x000000 x404040 x0000ff x00ff00" > $gpcommandecho "set grid ytics" >> $gpcommandecho "set nokey" >> $gpcommandecho "set nolabel" >> $gpcommandecho "set data style lines" >> $gpcommandecho "set noxzeroaxis" >> $gpcommandecho "set noyzeroaxis" >> $gpcommandecho 'set output "'$gpout'"' >> $gpcommandecho 'plot "'$gpdata'"' >> $gpcommand# create the data filexlhtml -fw -asc -xp:0 -xc:0-1 -xr:2-6 $source > $gpdataif ((!(-s $gpcommand)) | (!(-s $gpdata)) |($status)) then echo "$0: failed to generate gnuplot command or data files" exit 1endif#File exists and is of length > 0, so do it...gnuplot $gpcommandif (!(-s $gpout)) then echo "$0: failed to generate gif file" exit 1endif# Display the results in Netscapensopen $gpout# Clean uprm $tmp*exit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -