Skip to content

Instantly share code, notes, and snippets.

@yukimya
Created September 8, 2014 07:31
Show Gist options
  • Save yukimya/4d1e65239bbd5bca0cc7 to your computer and use it in GitHub Desktop.
Save yukimya/4d1e65239bbd5bca0cc7 to your computer and use it in GitHub Desktop.
Plot Distant Matrix by gnuplot
# This is for calcDisMatPlot.py
# create jpeg file
# written by Naoyuki Miyashita 09/07/2014
# GPL v3
se pm3d at b
unse surface
se view 0,0
se size 0.7,1.0
unse key
se xr [34:102]
se yr [34:102]
se zr [0:8]
se cbrange [0:8]
se term jpeg
do for [i =0:449]{ set output "tmp/dd.".i.".dis.jpeg" ; n=i*2 ; unse title; se title "".n." ns"; spl 'ddout.dis.d' index i u ($2):($3):4 w l}
set output "tmp/dd.ave.jpeg" ; spl 'ddout.ave.d' u ($1):($2):3 w l
se cbrange[0:8]
do for [i =0:449]{ set output "tmp/dd.".i.".dif.jpeg" ; n=i*2 ; unse title; se title "".n." ns"; spl 'ddout.dif.d' index i u ($2):($3):(abs($4)) w l}
se zr [0:20]
se cbrange[0:20]
unse title; set output "tmp/dd.div.jpeg" ; spl 'ddout.div.d' u ($1):($2):3 w l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment