Logarithmic scaling

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mc-electronic
Newbie
Newbie
Posts: 3
Joined: Mon Nov 09, 2009 12:00 am

Logarithmic scaling

Post by mc-electronic » Wed May 05, 2010 4:41 pm

Hi all,

I run TeeChart Pro V 8.06 on Delphi 7. I have an application, that requires logarithmic scaling on the Y-Axis. As long as I use scalings like Minimum = 0 and Maximum = 100 it works. However, I need scaling in very small numbers, e.g. Minimum := 0.000001; Maxiumum := 0.001; I get no Y-Axis labels at all. The Series is drawing all right, but there are no labels.

What am I missing?

Thank you! Michael

mc-electronic
Newbie
Newbie
Posts: 3
Joined: Mon Nov 09, 2009 12:00 am

Re: Logarithmic scaling

Post by mc-electronic » Thu May 06, 2010 5:32 am

Hello all,

I am a bit further, I get some scaling now. However, as soon as I move the chart with the right mouse button, the scaling and the graphic are gone. I have prepared a sample project with some manual data. What am I missing?

Thank you, Michael
Attachments
Project1.zip
(423.59 KiB) Downloaded 257 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Logarithmic scaling

Post by Narcís » Thu May 06, 2010 7:59 am

Hi Michael,

What about setting bottom axis Increment? For example:

Code: Select all

  Chart1.Axes.Left.Increment:=0.0001;
If scrolling logarithmic series out of axis range you may not see any label. Unzooming the chart will display labels again.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

mc-electronic
Newbie
Newbie
Posts: 3
Joined: Mon Nov 09, 2009 12:00 am

Re: Logarithmic scaling

Post by mc-electronic » Thu May 06, 2010 9:30 am

Hello Narcis,

I tried the increments you suggested (on bottom axis and on Left axis - you suggested both). However, my main problem now is the scolling (and zooming). Have a look at my sample and try to move (scroll) the chart with the right mouse-button - the graph is not simply moving, but gets deformed or vanishes. You can scroll very carefully a littlebit, if you click as close as possible to the bottom axis into the chart.
A linear chart moves nice around, but the logarithmic chart behaves 'unexpected'.

Best regards, Michael

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Logarithmic scaling

Post by Narcís » Thu May 06, 2010 9:53 am

Hi Michael,

Yes, I'm afraid this is just because of logarithmic axis scaling. Scroll and zoom use axes scales for their calculations instead of screen pixels.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply