#2 interface using black box handles

None
closed
nobody
None
5
2016-03-01
2003-08-01
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

  • Hazen Babcock

    Hazen Babcock - 2016-03-01
    • status: open --> closed
    • Group: -->
     
  • Hazen Babcock

    Hazen Babcock - 2016-03-01

    You can do this using the plsstrm() function as illustrated in examples 1, 14 and 20. It is not as convenient as what you propose but at least it works.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks