Contour Series Seems Slow

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Gerard
Newbie
Newbie
Posts: 7
Joined: Mon Sep 29, 2008 12:00 am
Contact:

Contour Series Seems Slow

Post by Gerard » Mon May 09, 2011 6:40 am

Hello.

I am attempting to use a contour series to draw a top-down (2D) view of filled contour data. I have a collection of scattered data points that it needs to plot around. There are about 20 of these points.

I have tried calculating the value of the 'missing' points so as to create a complete, irregular grid with the real data points. This sort of worked, but the contours had quite straight edges, even with smoothing enabled. Also something seems awry with how it calculates the gradients - I would often get triangles that would not paint (e.g. they would appear transparent, showing the background). I have found ways to mitigate against these triangles, but I can't seem to find a good solution to get rid of them completely. Is this an error with the contour series itself?

I decided that to improve the contour plot I would calculate every point for a fixed grid, such as every 10 x 10 pixels. This plotted beautiful contours, but as it was adding thousands of points - using the AddXYZ() function - it would take a few seconds to display. This is unfortunately too slow to be acceptable.

I'm trying not to deviate from the natural x,y co-ordinates of the original data points too much, but I'm having trouble finding an approach that plots good-looking and fast contours.

I'm thinking that I will need to try to limit the amount of points I add by doing something clever with an irregular grid, while at the same time trying to keep the x,y co-ordinates of the source data as close to true as possible.

Can anyone please give me some advice on how I could better use the contour series? I'm especially keen to know if there's a way to get rid of the transparent triangles that have been causing me some grief. Any tips on speeding it up will also be greatly appreciated.

Gerard
Newbie
Newbie
Posts: 7
Joined: Mon Sep 29, 2008 12:00 am
Contact:

Re: Contour Series Seems Slow

Post by Gerard » Tue May 10, 2011 2:36 am

I have found another thread that specifically covers the problem of the transparent triangles:
http://www.teechart.net/support/viewtop ... =3&t=10796

Sorry for not noticing it earlier.

I understand that it's a difficult problem to solve, but unfortunately I will not be able to use the contour plot while it consistently produces these artifacts.

Yeray
Site Admin
Site Admin
Posts: 9538
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Contour Series Seems Slow

Post by Yeray » Fri May 13, 2011 11:34 am

Hello Gerard,

Please, follow the thread you mentioned to know about the evolution on this.
Thanks in advance.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply