Strange logarithmic scaling problem on polar plot

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
walker1
Newbie
Newbie
Posts: 14
Joined: Fri Nov 15, 2002 12:00 am
Location: Denmark

Strange logarithmic scaling problem on polar plot

Post by walker1 » Tue Feb 12, 2008 8:01 am

I have a polar plot, which can show either square meter or dB over 1 sqr m.
The later uses log10 scale!

When I change the scale in dB mode (plot is, of course, using linear scales) everything works fine.
If I have set the boundaries to 0 and 5 (dB) my curve says 3.9 dB.
Changing the lower boundary still keeps the curve at 3.9.

Switching to log mode (converting data to sqr m) the scale goes from 1 to 3.16 sqr m. But the curve is now equivalent to 4.6 dB! (no propper scale or grid is available in log mode, unfortunately :( )
Changing the lower boundary to 2 sqr m moves the curve down to 3.2 db.
(and might actually be inverted!)

The data is correctly converted back and forth (db <-> sqr m), but plotting seems to have a problem.
If the lower boundary is set too high, the plot will be 'inverted'. Data being plotted somewhere 180 deg. rotated. The scalcurve is rather steep on that side!
Not so in dB mode. The curve just simply disappears.

Auto scaling does find the propper values, but they are no good, if the plot itself does not work. :(

I am using v. 7.12, which I believe is the latest we got license for.
I am using Delphi 6 with all updates.

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

Post by Narcís » Tue Feb 12, 2008 10:52 am

Hi ole,

Could you please send us a simple example project we can run "as-is" to reproduce the problem here? You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
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

walker1
Newbie
Newbie
Posts: 14
Joined: Fri Nov 15, 2002 12:00 am
Location: Denmark

Post by walker1 » Wed Feb 13, 2008 8:30 am

I have uploaded a zip file (PolarDemo.zip) containing a demo (exe and all source) of the problem.

The application places different values in the four quadrants. 316, 10, 31.6 and 100.
The chart has just been brutally copied from my actual application with only little adjustment for this demo.

The upper and lower boundaries are set to 316 and 3.16 respectively.

The up/down controls adjust the limits by approx. 1 dB.

Notice what happens to data plots, when the lower limit increases.
All four quadrants in fact if you increase minimum far enough!

Then try doing the same in linear mode by unchecking "Log scale".

There is no inteligence in the limits, so you will get a warning from the chart, if you go too far.

walker1
Newbie
Newbie
Posts: 14
Joined: Fri Nov 15, 2002 12:00 am
Location: Denmark

Post by walker1 » Fri Mar 28, 2008 7:15 am

No feedback on this so far :(

Does that mean:
  • That You can not reproduce the error?
    That the bug has been fixed in some later version ?
    That You have not received the files yet, or can not read them ?
He, who does not ask, gets no answer!

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

Post by Narcís » Fri Mar 28, 2008 11:08 am

Hi walker1,

Sorry for the delayed reply.

We could identify this as a bug (TV52012929) but we can not give an estimate date for this being fixed. Obviously, logarithmic axes don't plot correctly with polar series under some circumstances (when axis minimum is greater than zero).
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