Andrew Ross wrote:

>Arjen and I have been tidying up the tcl bindings and examples. As a
>result the tcl bindings are in a much better state than they have been
>for a long time. There were a large number of newer common API functions
>missing along with quite a few examples.
>  
>
Most of the work has been done by Andrew :)

>Only example 19, 20 and 21 remain to be implemented. 
>
>Example 19 requires plmap and plmeridians.
>Example 20 requires plimage and plimagefr.
>Example 21 requires plgriddata.
>
>The mapping functions are missing from most non-C bindings.
>
>The others can be implemented, but will require hand-crafted bindings.
>Hopefully Arjen will be able to look at this soon. Arjen also has some
>suggestions for making the tclmatrix extensions more efficient.
>
>Ctest results are good, although some examples do show rounding errors
>compared to the C versions on some platforms. Given the very different
>numerical handling in tcl this is probably not surprising.
>  
>
I think that the issue of the rounding errors is due to the fact that we 
use the
string-based interface in PLplot. This is relatively slow as numbers 
will get
written to strings before the PLplot wrapper function is called and in 
the wrapper
they are transformed back to numbers again. It is also a source for 
rounding
errors unless the special variable tcl_precision is set to 17 (to ensure 
the string
representation can be used to exactly reconstruct the number).

This is not too bad for most plot commands, but I think it is 
responsible for the
slowness of the matrix extension. So, one way to further improve the 
interface
is to convert it to the object-based interface.

Regards,

Arjen


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to