|
From: <she...@be...> - 2010-06-07 20:22:14
|
OK. It looks like Thomas Sefzick responded to an earlier post of mine on this same topic (to which I thought I had gotten no reply). Thomas said that the problem was with my data file and in particular with strings that appear periodically. See Thomas' remark at: http://permalink.gmane.org/gmane.comp.graphics.gnuplot.user/5474 Don't know how I missed this. Thanks Thomas > Hi folks > > I have written a gnuplot script (which appears below) that reads and plots > image data from an ascii file. The file contains multiple 2D images and > the > script advances through the images depending upon whether an up or down > arrow key is pressed. Presently the script displays the images correctly > when the arrow keys are pressed but the script generates the following > warning repeatedly: > > warning: matrix contains missing or undefined values > > This warning message appears to be slowing the display of the images > upon making the button press. > > Does anybody have an idea why this warning is appearing? > > > 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 > |