Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2 interface using black box handles

open
nobody
None
5
2003-08-01
2003-08-01
Amiga Lemming
No

My request is more than asking for a new feature but
needs discussion about the fundamentals, I'm afraid.

The current implementation seems to depend heavily on
global variables in the plplot library. I'd be more
glad if the library works with black box handles and
functions that manipulates them. A program invoking
plplot would then look more like:

win = plopenoutput(specs);
plline(win,data,...);
plcloseoutput(win);

or

win = plopenoutput(specs);
plsubplots(win,2,2,&arrayof4winhandles);
plline(arrayof4winhandles[0],data0,...);
plpoin(arrayof4winhandles[1],data1,...);
plcloseoutput(win);

This would allow for more flexibility and easier
building of a program of several modules.

I think that there are many programs around that rely
on the current interface but what one could do is to
provide an "easy" and an "expert" interface. The "easy"
interface is the current one which will be silently
mapped to the more flexible "expert" one. Yes, this
will require much restructuring effort ...

Discussion