|
From: Petr M. <mi...@ph...> - 2007-02-06 23:34:04
|
> Is it possible, or does it seem like a good feature, to have the output of > a "print" command redirected? Of course, that info is now in the many > GPVAL_ variables, and what is nice is that "print GPVAL_X_MAX" prints out > a single value that requires little processing than a simple formatted > variable read (no weeding out other stuff). Perhaps everything there is > needed already (I'm not as proficient in redirection as others on the > list). Otherwise, would the ability to redirect "print" to a file > (Windows?... any word on Vista?) or pipe be of any benefit? That does work for a long time...: gnuplot> set print "a.dat" gnuplot> plot x gnuplot> print 1,2 gnuplot> print GPVAL_X_MIN, GPVAL_X_MAX gnuplot> set print gnuplot> !cat a.dat 1 2 -10.0 10.0 ! Or do you mean sth completely different? > Octave has interest in getting back the range values from gnuplot's > autoranging result after a plot. Piping is used in ginput.m, for example, to get MOUSE_ variables. For GPVAL_, it would be the same. The current gpinput.m is on gnuplot's web page. --- PM |