octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnuplot output from print?


From: John W. Eaton
Subject: Re: gnuplot output from print?
Date: Thu, 06 Sep 2007 17:02:03 -0400

On  6-Sep-2007, Søren Hauberg wrote:

| John W. Eaton skrev:
| > Since I find that I often need to see precisely what commands Octave
| > is sending to gnuplot (see the bug report from today about line colors
| > vs the -mono option for the print command) I made the following
| > changes.  Now if you use the option -debug=FILE with the print
| > command, Octave will also write all the commands it sends to gnuplot
| > to the file FILE (with just -debug, it writes to the file
| > octave-print-commands.log).
| This is great! A couple of comments though:
| 
| 1) A semi-colon is missing in 'print'. Patch attached.

Fixed.

| 2) I think it's a shame that this is reduced to a debug feature. Octave 
| will never support every little weird feature of gnuplot, so it can be 
| very handy to be able to tweak a plot in gnuplot. This feature can 
| provide you with a rough gnuplot file that you can work from, when doing 
| this tweaking. I think it would be more nice to have a 'print -dgnuplot' 
| style syntax for this feature. But this an extremely small issue.

I'm not opposed to that, it's just that the debug feature was enough
for me.

| 3) I can't figure out how to use it :-)

You currently have to choose a terminal type, so try:

  print -deps -debug=FILE.gp

I chose this -debug=FILE syntax to simplify argument processing and
minimize the changes to the print function.

jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]