On Aug 22, 2009, at 2:05 PM, Alan W. Irwin wrote:

> Once plscmap0n(0) gives default colours like before, I suspect all  
> the Ada
> red issues will go away.  Jerry has remarked before that our Ada  
> bindings do
> their own colour initialization, and my guess is that boils down in  
> the
> cmap0 case to a call to plscmap0n(0).


I didn't absorb all of what Alan wrote on my first and second quick  
readings, but here is what happens in the Ada initialization.

The Ada binding, when initializing package plplot.adb or  
plplot_traditional.adb, makes several calls to plgcol0 as part of the  
color map 0 snapshot function--an initial snapshot is taken so that  
the user can later restore the initial colors if desired. No other  
calls are made. These calls to plgcol0 take place before plinit (which  
is normally called from the user program, after Ada package  
initialization).

I did not put plinit into the Ada package initialization because I  
understood that there are other, optional, "pre-initialization" set-up  
calls that the user can make, and these must come before plinit.  
Except for those, the Ada package initialization could have been made  
to call plinit, relieving the user of doing that.

Jerry

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to