help-octave
[Top][All Lists]
Advanced

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

Re: Limited number of figures?


From: A S Hodel
Subject: Re: Limited number of figures?
Date: Wed, 11 Jun 2003 21:24:18 -0500

In octave, what is the variable gnuplot_binary set to? You can set this to be a string with the path to your gnuplot. That ought to do the job.

On Wednesday, June 11, 2003, at 04:20 PM, Steven D Ratts wrote:


I took your advice and compiled a version of gnuplot 3.7.3 in my home
directory.  I changed the MAX_WINDOWS value from 16 to 65535.  I have
confirmed that this version is the first one that appears on my path and is the one that will be executed if I type gnuplot on the command line, and *still* octave insists on running the other one. I have recompiled octave as well, partly to include a couple of patches, and partly to see if that
would make a difference in which version of gnuplot is executed.

So I'm stumped.  How can I get octave to cooperate and launch this new
version of gnuplot?

Thanks,
Steve

Steven D Ratts
520.794.3692 Desk
520.794.5815 FAX
520.489.8916 Pager
address@hidden




                      A S Hodel
<address@hidden To: "Steven D Ratts" <address@hidden>
                      uburn.edu>               cc:
Subject: Re: Limited number of figures?
                      06/10/2003 02:51
                      PM






The figure number has to be from 0 to 16 if you can't recompile gnuplot.
Otherwise, your options are
(a) compile an alternative gnuplot in your home directory, or
(b) ask the sysadmin to make the change I suggested.  (I set it to 64).

On Tuesday, June 10, 2003, at 04:11 PM, Steven D Ratts wrote:


What about resetting the figure number?  Is there any way to do that
from
within octave?  I'm not the system administrator on the system I'm
working
on, so compiling custom versions of gnuplot and installing them is
fairly
tedious.

Thanks,
Steve

Steven D Ratts
520.794.3692 Desk
520.794.5815 FAX
520.489.8916 Pager
address@hidden




                      A S Hodel
                      <address@hidden         To:      "Steven D
Ratts" <address@hidden>
                      uburn.edu>               cc:
address@hidden
                                               Subject: Re: Limited
number of figures?
                      06/10/2003 11:51
                      AM






This is a problem with gnuplot code.  You can fix it by editing the
gnuplot source.
Look in file src/gplt_x11.c for
#define MAX_WINDOWS 16
and change the value to what you want.

On Tuesday, June 10, 2003, at 01:23 PM, Steven D Ratts wrote:

Hi,

I'm an experienced MATLAB user, but a novice with octave, so this may
be a
very simple question. I looked in the help archives but I wasn't able
to
find something that looked relevant, nevertheless, this would seem to
be a
very basic problem that most likely is commonly encountered and
(hopefully)
easily solved.

When I generate plots using octave (2.1.48), the windows are labeled
with
the figure number as "Gnuplot n" where n is the figure number.  The
first
issue is that even if I do a "close all" (which does close all the
windows), the next plot I make (and the value returned by the figure
command) is n+1 where n is the number of the last figure created.  Is
there
some way to reset the figure number?

The second, and more pressing issue doesn't occur until I get to the
16th
figure for a given session of octave.  On that figure the window is
labeled
"Gnuplot" rather than "Gnuplot 16" (this is not a big deal IMO), and
all
further plots will go to that window (which is the crux of the
problem).
Basically, I can't get more than 16 figures out of a given session of
octave before all further figures overwrite the last one. I can clear
this
by exiting octave and restarting, but this is hardly a viable
solution.

Is there some way to reset the figure number to 1?  I can live with
not
having more than 16 figures open at one time, but if I'm going to be
able
to effectively look at the data I need to process, I'll certainly need
much
more than 16 figures in a given octave session and would like to have
several open at any given time.

Is this a gnuplot issue?  I'm using gnuplot 3.7 on my system (a PC
running
linux Redhat 9) if that is relevant.

Are there any alternatives to gnuplot (if that is the issue) that I
might
be able to use, and if there are, can I access them via octave's plot
command?

Thanks!
Steve

Steven D Ratts
520.794.3692 Desk
520.794.5815 FAX
520.489.8916 Pager
address@hidden





-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------





-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------

















-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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