Recent

Author Topic: TAChart: Logarithmic diagrams  (Read 5383 times)

wp

  • Hero Member
  • *****
  • Posts: 13398
TAChart: Logarithmic diagrams
« on: August 15, 2011, 06:30:05 pm »
When plotting data on logarithmic axes the logs have to be calculated explicitly before adding the data to the series. This is quite unusual: Excel, gnuplot etc. accept direct data and calculate the logs themselves. This would make life easier when an applications allows the user to switch between linear and log scales.

I fear that some internal routines might get screwed up, but is it possible to have that behavior in TAChart as well? I mean that the ChartTransformation should be responsible for calculating the logs of the data, not only of the axis labels.

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: TAChart: Logarithmic diagrams
« Reply #1 on: August 15, 2011, 07:34:31 pm »
Quote
When plotting data on logarithmic axes the logs have to be calculated explicitly before adding the data to the series.

Why do you think so? Please look at axistransf demo -- does it not work for you?

wp

  • Hero Member
  • *****
  • Posts: 13398
Re: TAChart: Logarithmic diagrams
« Reply #2 on: August 15, 2011, 11:08:34 pm »
Enclosed is a simple project plotting the function y = exp(-x). On a semilog scale the exponential curve must become a straight line - that's simple math. In this program, however, this is true only if the two lines marked by the comment "Needed" are active.

What am I doing wrong?
« Last Edit: August 16, 2011, 12:11:23 am by wp »

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: TAChart: Logarithmic diagrams
« Reply #3 on: August 16, 2011, 01:01:51 am »

wp

  • Hero Member
  • *****
  • Posts: 13398
Re: TAChart: Logarithmic diagrams
« Reply #4 on: August 16, 2011, 08:46:06 pm »
Ah! Guess I should read the docs once more...

 

TinyPortal © 2005-2018