On Tue, Aug 25, 2009 at 10:27:07AM +0100, Andrew Ross wrote:
> 
> I've now committed what I have to svn. Fixing the output format to %.20g
> in pltclgen.tcl results in example 29 at least working. The output is
> different to the C version though. To me this looks a little like rounding
> errors, but I'm not sure. Perhaps fixing this up properly as you suggest
> will remove the remaining issues.
> 
> Andrew

Arjen,

Further testing shows that the values being passed into the plplot
functions are being truncated to 12 d.p., despite having 
"set tcl_precision 17" at the top of the procedure. 

Turns out I need set ::tcl_precision 17 to set the global variable.

With this change tcl example 29 now works correctly.

So we now have a working example 29, however we (probably Arjen!) should 
fix the code to use tcl_precision when returning values from plplot, and
not just assume 17.

Andrew

------------------------------------------------------------------------------
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