Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 Zoom limitation for scatterplots
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

emcc

15 Posts

Posted - 12 Aug 2009 :  19:31:05  Show Profile  Reply with Quote
I have noticed a problem when drawing scatterplots using a high zoom - results in an Overflow Error in UpdateDraw. (using C#, VS2005, QCChart2DNet.dll v1.7.1.4)
To reproduce the error, in the SimpleLineAndScatterPlots.cs example, set the y-axis scale:
pTransform1.SetScaleY(50.0, 50.00001);
If you comment out the 2 scatterplots in the example, the error doesn't occur.
What is the limit for small scales like this?

quinncurtis

1164 Posts

Posted - 13 Aug 2009 :  09:41:19  Show Profile  Reply with Quote
We use some .Net 2D transformation routines in the .Net Matrix class for handling the scaling, translation and rotation of the scatter plot symbols. The Matrix class only uses floats (4-byte reals) in its calculations. The data has range of 10^2, and the display range 10^-6, so there is a 10^8 resolution required in the calculations. The result is producing roundoff errors in the Matrix float calculations that ultimately lead to the overflow error you see. So, you must limit your zooming to a dynamic range less 8 orders of magnitude. We see no work around with the software in its current form (and Rev. 2.0 also). It would require a rewrite of the ScatterPlot symbol plotting routines to eliminate the use of the Matrix class to make it work under the conditions you describe. If it is critical to your application, we could probably do that under contract at a nominal cost.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07