octave-maintainers
[Top][All Lists]
Advanced

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

Re: __gnuplot_set__ fails as function call 2.9.1


From: Daniel J Sebald
Subject: Re: __gnuplot_set__ fails as function call 2.9.1
Date: Fri, 01 Apr 2005 16:24:37 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

John W. Eaton wrote:
On  1-Apr-2005, Daniel J Sebald <address@hidden> wrote:
| I assume there will be other types of graphics packages put together
| this way.

Yes, I think there already are.  The one in Octave based on gnuplot
was the only special one.

Other code that is not part of a specific graphics package should use
the high-level plotting functions, not the low-level things like
__gnuplot_raw__.  That way it can work with any graphics package.

OK, then we had the same general arrangement in mind.

Eventually, maybe we will converge on a single preferred package for
doing graphics from inside Octave.  But until then, we should try to
make it easy to experiment with different options.

Yes.

 If people need
additional features (line widths, etc.) then we should agree on how to
get that into the higher-level plotting functions.  It makes sense
for compatibility to provide a handle-graphics interface for that, but
that does not have to be the only way (in the past, we've discussed
things like

  h.property = value;

as an alternative to

  set (h, property, value, ...);

for setting graphics properties.

Perhaps, but that then makes things tricky. I've stated before I'm not a fan of handle graphics, but "set" is a function that could be routed to an m-script. h.property = value can't be done that way. Wouldn't that only work with an internal graphics driver?


| But how then does someone indicate their selection of which plotting
| utility to use?  Is this something selected when installing?

I think it should be selectable at run-time, using LOADPATH.

Yes, definitely. It would be difficult to experiment if configuration were done at install time.


| How does one close gnuplot if it is launched from a plotting m file?
| Is there to be some hook into Octave that can call a command upon
| exit, just like .octaverc?

Use closeplot.  The code to interface with gnuplot is still in C++.
Commands like __gnuplot__ (i.e., the current __gnuplot_raw__) would
include the necessary magic to automatically (re)start gnuplot if
needed and kill it when Octave exits.

OK.

Dan



reply via email to

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