TDownSampling and X logarithimc scale

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
pex
Newbie
Newbie
Posts: 3
Joined: Mon Jul 07, 2014 12:00 am

TDownSampling and X logarithimc scale

Post by pex » Wed May 13, 2015 11:10 am

Hello,
I use your function for downsampling series TDownSampling and it can be perfect for me. I need to show many points >1E6 in graph with MIN/MAX reduction procedure. It works fine but....
It works good for linear bottom axis. If I change to log scale I can see that on start on bottom axis there are missing points in resampled series. I think you calculate one reduce value (how many points will be reduced in one pixel) for whole axis range. This reduce value is valid only for linear scale not for log scale.
IS there any way how to use variable reduce value?
How to use TDownSampling with log scale correctly?

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

Re: TDownSampling and X logarithimc scale

Post by Yeray » Thu May 14, 2015 8:39 am

Hello,

From the Features demo:
TDownSampling function reduces the number of points in series by using several different methods:

dsDouglas : Douglas-Peuckler reduction
dsAverage : Replace group of points with group average values
dsMax : Replace group of points with group maximum values
dsMin : Replace group of points with group minimum values
dsMinMax : Replace group of points with group minimum AND maximum values
Note of the methods of this function reduce the number of points considering the values on the series, not the pixel positions where they are drawn.

If you are using a TFastLineSeries you may want to give it a try at the DrawAllPoints feature (set it to false) instead of using TDownSampling function. This feature reduces the number of points considering the pixel positions where the points are being drawn.

If you still find problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.
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