Search found 15 matches

by philip
Tue Feb 22, 2011 4:07 pm
Forum: VCL
Topic: OnClick coordinates
Replies: 3
Views: 5479

Re: OnClick coordinates

Code: Select all

  XPos:=Chart1.Axes.Bottom.CalcPosPoint(X);
  YPos:=Chart1.Axes.Left.CalcPosPoint(Y);
perfect. many thanks
by philip
Sun Feb 20, 2011 5:53 pm
Forum: VCL
Topic: OnClick coordinates
Replies: 3
Views: 5479

OnClick coordinates

First - apologies for what is probably a dumb question. So thanks in advance for your help on the forum. Second - in C++/VCL how do I determine the axis-based coordinates of a mouse click in a chart? That's to say, not the cursor coordinates on the Chart object itself (which start at 0,0 top-left) b...
by philip
Fri Jul 30, 2010 3:52 pm
Forum: VCL
Topic: histogram binning - Steema vs MATLAB
Replies: 14
Views: 16072

Re: histogram binning - Steema vs MATLAB

Hi philip, Really? That's strange, it works fine for me here in v8 directly referencing the sources from Delphi. You could try adding the source code path at Tools -> Options -> Environment Options -> Delphi Options -> Library - Win32 -> Library path. Does this work for you? Paths were ok. I purged...
by philip
Fri Jul 30, 2010 2:45 pm
Forum: VCL
Topic: histogram binning - Steema vs MATLAB
Replies: 14
Views: 16072

Re: histogram binning - Steema vs MATLAB

Hi philip, Continuing with what I said above, we decided to add a new property to THistogramFunction called DataStyle of type TDataStyle which is an enum with those possible values: hdsTruncate and hdsRound; the first one being the default value. So, from now on, by default, you'll get histograms c...
by philip
Thu Jul 29, 2010 2:34 pm
Forum: VCL
Topic: histogram binning - Steema vs MATLAB
Replies: 14
Views: 16072

Re: histogram binning - Steema vs MATLAB

Do you have any Delphi version for trying the project I attached and check if it works fine for you? At the URL below you can download the exe I generated with my sample project. Can you please check if it works as expected at your end? yes (RAD 2009). I was just looking at it just now. It compiles...
by philip
Thu Jul 29, 2010 1:54 pm
Forum: VCL
Topic: histogram binning - Steema vs MATLAB
Replies: 14
Views: 16072

Re: histogram binning - Steema vs MATLAB

Hi Philip, Yes, I know Round is still in Histogram method. However, there have been some recent changes in TeeHistogram.pas. Have you received the file I sent you? Does this work as expected? Yes, I received the TeeHistogram.pas file you sent as an attachment. It is identical to the one in the VCL ...
by philip
Thu Jul 29, 2010 9:38 am
Forum: VCL
Topic: histogram binning - Steema vs MATLAB
Replies: 14
Views: 16072

Re: histogram binning - Steema vs MATLAB

I'm using Release Notes 13th April 2010 TeeChart VCL version 8 Build 8.07.70413 In that source package, TeeHistogram.pas is definitely using Round(). I was aware of TV52012772. I have downloaded TeeChart8.07SourceCode.exe April 13, 2010 Build 8.07.70413 File size - 6,61 MB again just now. The Round(...
by philip
Tue Jul 27, 2010 1:32 pm
Forum: VCL
Topic: histogram binning - Steema vs MATLAB
Replies: 14
Views: 16072

Re: histogram binning - Steema vs MATLAB

The source of the discrepancy is in the binning algorithm of TeeHistogram.pas. In procedure Histogram(Data: TChartValues; var bins,counts: TChartValues; Min,Max: Double; nbins: Integer); the use of Round() function seems to me to be inappropriate. Round() probably uses Banker's rounding which means ...
by philip
Mon Jul 26, 2010 8:59 pm
Forum: VCL
Topic: histogram binning - Steema vs MATLAB
Replies: 14
Views: 16072

histogram binning - Steema vs MATLAB

I'd appreciate some insight into why there is such a discrepancy between data binned by THistogramFunction and MATLAB's binning. The attached code uses my own method for binning (a standard method) which reproduces MATLAB output exactly. The differences are even more remarkable and disconcerting whe...
by philip
Mon Jul 26, 2010 3:13 pm
Forum: .NET
Topic: Need help for histogram
Replies: 8
Views: 11407

Re: Need help for histogram

i notice the original question mentioned matlab's hist() function. i am perplexed as to why THistogramFunction produces results that are very different from matlab's hist(). does anyone know why? (i have been playing with 6500 data points, trying to figure out why my polar plots in TChart 8.07 are s...
by philip
Wed Jun 23, 2010 8:09 pm
Forum: VCL
Topic: custom function
Replies: 1
Views: 3541

custom function

is there a complete c/c++ example of how to implement a custom function? my delphi-to-c++ skills are too poor on syntax etc to proceed. i've found several snippets, including http://www.steema.com/files/public/teechart/java/v1/docs/Tutorials/tutorial7.htm#DerivingVCL and http://www.berneda.com/teech...
by philip
Wed Jun 23, 2010 11:00 am
Forum: VCL
Topic: reading values from THistogramFunction
Replies: 1
Views: 3393

reading values from THistogramFunction

I can't figure out how to read the calculated values from a histogram. The following would loop through each bin for( int j = 0; j < dynamic_cast< THistogramFunction * >( c -> Series[ 1 ] -> FunctionType ) -> NumBins; j ++ ) ?????; but how do i now read the function's values using index j? In ChartE...
by philip
Fri Aug 03, 2007 4:49 pm
Forum: VCL
Topic: TeeChart VCL v8 RELEASED!
Replies: 6
Views: 8488

this doesn't work - the tee8new.exe application is looking for pascal/delphi files. although the zip you sent me contains .cpp files - presumably for v801 - the .exe doesn't pick them up for viewing
by philip
Fri Aug 03, 2007 12:07 pm
Forum: VCL
Topic: TeeChart VCL v8 RELEASED!
Replies: 6
Views: 8488

hello - unfortunately TeeChart8.01Delphi2007.exe won't install anything unless delphi/builder 2007 is installed on the machine, and i don't have this - i'm using builder5.1 therefore the closest that i have to what you refer to is C:\Program Files\Steema Software\TeeChart 80 for Builder 5\Examples\F...
by philip
Fri Aug 03, 2007 11:09 am
Forum: VCL
Topic: TeeChart VCL v8 RELEASED!
Replies: 6
Views: 8488

v8.01

i've downloaded the sources for 8.01, compiled and installed packages ok. i then downloaded the Tee8New.exe application from the binaries section, but am unable to configure it to point to the relevant source code. i presume i have to download the VCL demos sources as well, but can't find them. wher...