Re: [Plplot-devel] Cookbook for implementing the remaining Ada examples

2007-07-17 Thread Jerry

On Jul 4, 2007, at 6:54 PM, Alan W. Irwin wrote:

 On 2007-07-04 09:12-0700 Alan W. Irwin wrote:

 If you want to help with this effort of implementing the  
 traditional Ada
 examples, please let the list know exactly which ones you are  
 working on so
 there is no duplication of effort.

 For example, I am currently working on x02a.adb.




 One thing revealed by this example is our Ada bindings were much too
 conservative about the allowed range of plcol0 indices.  I changed  
 that from
 0..15 to the much more reasonable 0..255.  Example 2 uses 116  
 different
 cmap0 indices, but some users may want more.

I removed the range limitation completely so now the index is a full  
32 bits. I don't think there is much reason to limit it to 256 or to  
any other number less than 2^32 unless there is a threshold over  
which we can definitely discern that a user is making a mistake. Even  
with the range opened up, Ada still checks the type, Plot_Color_Type.

 I chose to limit the range in
 the bindings to 0..255 since that corresponds to 24 bits total for  
 r, g, and
 b and is more than adequate to handle example 2.

Not sure I understand, since 256 is the number of map entries, not  
the bits per color.

Jerry


 Jerry, please review and correct any strange things I did in Ada for
 x02a.adb.

Done (nothing strange).

 Alan


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Cookbook for implementing the remaining Ada examples

2007-07-17 Thread Jerry
Here is a little list that should help with the state of the Ada
examples. I expect to do most of them but if anyone wants to jump in
don't be shy 8^).

Jerry



Example 01Done
Example 02Done
Example 03
Example 04Done
Example 05
Example 06
Example 07
Example 08
Example 09
Example 10Done
Example 11
Example 12Done
Example 13
Example 14
Example 15
Example 16
Example 17
Example 18
Example 19
Example 20
Example 21
Example 22
Example 23
Example 24
Example 25


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Cookbook for implementing the remaining Ada examples

2007-07-04 Thread Alan W. Irwin
On 2007-07-04 09:12-0700 Alan W. Irwin wrote:

 If you want to help with this effort of implementing the traditional Ada
 examples, please let the list know exactly which ones you are working on so
 there is no duplication of effort.

 For example, I am currently working on x02a.adb.

Which is now done.  It took a bit of thrashing around (I didn't realize Ada
rounded when converting from floating point to integer) to get exact
agreement with the result for example 2 created with the C implementation,
but eventually I got there.

One thing revealed by this example is our Ada bindings were much too
conservative about the allowed range of plcol0 indices.  I changed that from
0..15 to the much more reasonable 0..255.  Example 2 uses 116 different
cmap0 indices, but some users may want more. I chose to limit the range in
the bindings to 0..255 since that corresponds to 24 bits total for r, g, and
b and is more than adequate to handle example 2.

Jerry, please review and correct any strange things I did in Ada for
x02a.adb.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__

Linux-powered Science
__

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel