From octave-graphics-request at bevo dot che dot wisc dot edu Thu Apr 10 23:50:25 2003 Subject: Re: Gnuplot 3.8 features and improved surf function From: Paul Kienzle To: David Bateman Cc: Fabio Rainone , octave-graphics@bevo.che.wisc.edu Date: Fri, 11 Apr 2003 00:51:34 -0400 David Bateman wrote: >Should you perhap use the "try ... catch" structure around this to prevent >people that don't have gnuplot 3.8 installed having problems? > > > Very pretty. I wrapped it with try/catch, reversed the order so that the mesh comes after the gsets and committed it to octave-forge CVS. Same for surfc. I did not test this on older versions of gnuplot. The try-catch may not be able to catch gnuplot errors. All subsequent mesh calls will use surf since octave does not reset gnuplot between plots. You can reset by hand with a call to clf. This should work in both matlab and octave. Paul Kienzle pkienzle at users dot sf dot net