octave-maintainers
[Top][All Lists]
Advanced

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

Re: gnuplot output from print?


From: Søren Hauberg
Subject: Re: gnuplot output from print?
Date: Thu, 06 Sep 2007 23:36:17 +0200
User-agent: Thunderbird 1.5.0.13 (X11/20070824)



John W. Eaton skrev:
On  6-Sep-2007, Søren Hauberg wrote:

| John W. Eaton skrev:
| > | 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.
| I tried this:
| | plot(sin(linspace(0, 2*pi, 100)))
|    print -deps -debug=FILE.gp
| | which gives me the following error/warning: | | lpr: Error - no default destination available. | | and a file called '=FILE.gp'. This file is however very usable to me.

Oops, I should have said that you currently have to choose a terminal
type and output file, so try something like:

    print -deps -debug=FILE.gp FILE.eps
This makes the error go away, but the resulting file is still called '=FILE.gp'.


| P.S. I really love this feature :-) With this, we can have both matlab | compatible plotting and great gnuplot support. The best of both worlds...

The only drawback that I see is that it encourages people to continue
doing gnuplot-specific tricks for plotting that will likely stop
working at some point.
I guess the gnuplot specific stuff will happen outside of Octave as Octave doesn't help you change the details of the gnuplot file. So, if we drop gnuplot at some point in the future, we could still keep the support for printing to a gnuplot file (I guess, but the future will tell).

Søren


reply via email to

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