Re: [AQT-dev] gnuplot -title option with AquaTerm
Brought to you by:
persquare
From: Per P. <per...@ma...> - 2006-09-13 20:50:41
|
On Sep 13, 2006, at 22:30, Joe Koski wrote: > > I did a sudo chmod +x gnuplot_aqua in /usr/local/bin and checked to > make > sure I had x in the permissions. Then I started a new terminal > shell, did an > export GNUTERM=gnuplot_aqua, and started octave-2.9.8. Sorry, my bad. I should have used less sloppy wording.... Octave has (used to have?) a setting: gnuplot_binary which contained the method to invoke gnuplot. Normally, it would just be set "gnuplot", but you could set it to "/whatever/path/you/like/to/ gnuplot" e.g. if you had different versions of gnuplot around. So, in octave: gnuplot_binary="/usr/local/bin/gnuplot_aqua" would trick octave into thinking that our little script is actually gnuplot, and we can do a man-in-the-middle trick and parse the options and make up a preamble from them. Then the script writes the preamble to a temp file and appends whatever octave sends to that file too. Finally we pass the file on to the "real" gnuplot. So, reset GNUTERM to aqua as it was, and set octave's gnuplot_binary="/usr/local/bin/gnuplot_aqua" and try some plotting with no further changes.... /Per > > When I tried plot(rand(1,10)); in octave I got an error: "Unknown or > ambiguous terminal name 'gnuplot_aqua'" and no plot appeared. > > So I exited octave, and did a gnuplot_aqua < gnuspect.inp, where > gnuspect.inp is a working gnuplot script. I got the same error > message, > followed by the correct plot, but with Figure 1 as the title. > gnuplot_aqua > did successfully invoke gnuplot-4.1, but did not change the title. > > My fear is that the octave plot process proceeds in several steps, > i. e., it > opens a new plot stream with gnuplot -title ... , then follows with > other > plot instructions before finally closing the plot stream with a > final set of > plot instructions. There are two new replacement routines for gset > called > __gnuplot_raw__ and __gnuplot_set__ that allow a knowledgeable user > to pass > instructions (font, line type and width, etc.) to gnuplot while the > plot is > being set. > > I don't fully understand your script syntax, but I assume you are > trying to > capture the title as it is passed to gnuplot. > > That could lead us back to just placing a set term aqua somewhere > in the > existing plot structure. > > I hope I'm clear and followed your instructions correctly. Just let > me know > if I need to try some other things. > > Joe > > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Aquaterm-developer mailing list > Aqu...@li... > https://lists.sourceforge.net/lists/listinfo/aquaterm-developer |