|
From: <she...@be...> - 2010-06-07 20:47:42
|
Hi Gnuploteers
I have written a gnuplot script that is behaving sluggishly at times. The
script appears below. The script reads and plots image data from an ascii
file. The file contains multiple 2D images and the sluggishness appears
to scale with the number of 2D images contained within the file. The
script advances through the 2D images depending upon whether an up or
down arrow key is pressed. The sluggishness occurs after this key press.
With 10 2D images in the data file the time between arrow press and the
display of the next 2D image is acceptable. When 400 2D images are present
in the data file then the time between arrow press and the display of the
next 2D image is not acceptable (8 seconds).
Does anybody know how I might remove this sluggishness? What is causing
this sluggishness?
Thanks again for the great software and advice!
reset
unset key
unset colorbox
unset border
unset xtics
unset ytics
unset ztics
set palette gray
set multiplot
i = 0
set size .25,1
set origin 0,0
set xrange [0:5]
set yrange [0:25]
plot 't_space.dat' index i using 1:2:3 with labels left
set autoscale
set size square 1
set origin .10, 0
plot 't_space.dat' index i+1 matrix with image
unset multiplot
# Advance or decrement the slice depending upon key press.
bind "Up" "i=i+2; \
reset; \
unset key; \
unset colorbox; \
unset border; \
unset xtics; \
unset ytics; \
unset ztics; \
set palette gray; \
set multiplot; \
set size .25,1; \
set origin 0,0; \
set xrange [0:5]; \
set yrange [0:25]; \
plot 't_space.dat' index i using 1:2:3 with labels left; \
set autoscale; \
set size square 1; \
set origin .10, 0; \
plot 't_space.dat' index i+1 matrix with image; \
unset multiplot;"
bind "Down" "i=i-2; \
reset; \
unset key; \
unset colorbox; \
unset border; \
unset xtics; \
unset ytics; \
unset ztics; \
set palette gray; \
set multiplot; \
set size .25,1; \
set origin 0,0; \
set xrange [0:5]; \
set yrange [0:25]; \
plot 't_space.dat' index i using 1:2:3 with labels left; \
set autoscale; \
set size square 1; \
set origin .10, 0; \
plot 't_space.dat' index i+1 matrix with image; \
unset multiplot;"
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gnuplot-info mailing list
gnu...@li...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
|