TContourSeries: slowing down problem

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
FMenges
Newbie
Newbie
Posts: 5
Joined: Thu Dec 12, 2019 12:00 am
Contact:

TContourSeries: slowing down problem

Post by FMenges » Wed Feb 12, 2020 1:06 am

Hi there,

I use a TContourseries to plot 2D spectral data. While hovering with the mouse, it always paints a red higlighted trace for all contours that have the same z value as the current mouse position. With contours of complex shape, this slows down the program extremely. I also use a cursor tool, to let the user extract cross sections, and this gets unusable in this mode. I then have to switch to TColorGridSeries, which doesn't have the problem, obviously.
I really don't need that contours highlighted, but couldn't find a property or method to turn this behaviour off. Any advise?

Here is how I initialize the TContourSeries:
ContourSeries.YPositionLevel:=false;
ContourSeries.NumLevels:=ColorSteps;
ContourSeries.CreateAutoLevels;
ContourSeries.AutomaticLevels:=true;
ContourSeries.Pen.Visible := Grid_Lines;
ContourSeries.Pen.Width := 0;
ContourSeries.Pen.Color:=clSilver;
ContourSeries.Smoothing.Active:=true;
ContourSeries.Smoothing.Factor:=4;
ContourSeries.Filled:=true;
ContourSeries.Brush.Style := bsSolid;
ContourSeries.IrregularGrid:=true;
Attachments
screenshot_highlighted_contourlines.png
screenshot_highlighted_contourlines.png (88.19 KiB) Viewed 52 times

Marc
Site Admin
Site Admin
Posts: 950
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: TContourSeries: slowing down problem

Post by Marc » Fri Feb 14, 2020 10:23 am

Hello,

You can set:

Code: Select all

Chart1.Hover.Visible := False;
Regards,
Marc Meumann
Steema Support

FMenges
Newbie
Newbie
Posts: 5
Joined: Thu Dec 12, 2019 12:00 am
Contact:

Re: TContourSeries: slowing down problem

Post by FMenges » Fri Feb 14, 2020 5:51 pm

O.M.G. This is awesome, the speed increase is tremendous. It now reacts nearly realtime even for large data sets (like 1700 x 6500 data points).
Thank you very much!

Are there any other optimizations possible, like those we have for lines series:
Series1 := TFastLineSeries.Create(Self);
Series1.XValues.Order := loNone;
Series1.DrawAllPoints:=false;
Series1.DrawAllPointsStyle:=daMinMax;

Post Reply