Search found 13 matches

by dave
Thu May 12, 2016 3:26 pm
Forum: VCL
Topic: Drawing lines on a tColorGridSeries
Replies: 4
Views: 6760

Re: Drawing lines on a tColorGridSeries

Thanks!
by dave
Thu May 12, 2016 12:03 pm
Forum: VCL
Topic: Drawing lines on a tColorGridSeries
Replies: 4
Views: 6760

Re: Drawing lines on a tColorGridSeries

Thanks Yeray,

Can you direct my into the source code file(s) to look at. The way the cursor works is preferable I think. Otherwise I can put them in the OnAfterDraw event as you say.

Thanks
by dave
Tue May 10, 2016 7:50 pm
Forum: VCL
Topic: Drawing lines on a tColorGridSeries
Replies: 4
Views: 6760

Drawing lines on a tColorGridSeries

The idea here is to draw a polygon on my image with Polyline. So, while holding the CTRL key down, click points on the chart. A line should be drawn between points and stretch between the last point clicked and the mouse. To close the polygon, release the CTRL key and click the final point. This als...
by dave
Mon May 02, 2016 12:52 pm
Forum: VCL
Topic: CalcXPosValue and CalcYPosValue
Replies: 3
Views: 7242

Re: CalcXPosValue and CalcYPosValue

Yeary, Thanks for your response. I agree with what you said. But, look at the rest of the example code and can you explain to me why r and c would be different after executing // Get the data array index of the point. k := Chart1.Series[0].Clicked(sx, sy); // Get the index into the 2D array that was...
by dave
Fri Apr 29, 2016 7:34 pm
Forum: VCL
Topic: CalcXPosValue and CalcYPosValue
Replies: 3
Views: 7242

CalcXPosValue and CalcYPosValue

Can you think of any reason why the functions CalcXPosValue and CalcYPosValue would give different answers by simply re-sizing the window a chart is in and rerunning the same data? If I do not resize the window, I get the same answer every time. But if I change the window size (like maximize it) I g...
by dave
Wed Apr 20, 2016 2:36 pm
Forum: VCL
Topic: Manually zooming to a specific region on colorgrids
Replies: 10
Views: 13999

Re: Manually zooming to a specific region on colorgrids

Yeray, I figured it out! I can programmatically zoom using Try 2 and 3 if I get the chart correct pixel locations mapped correctly to the rect.TopLeft and rect.BottomRight. The problem was on my end. BUT, please save the data file I sent you because I have another issue that you can help me with lat...
by dave
Wed Apr 20, 2016 12:52 pm
Forum: VCL
Topic: Manually zooming to a specific region on colorgrids
Replies: 10
Views: 13999

Re: Manually zooming to a specific region on colorgrids

Here is the forth file in the set.
by dave
Wed Apr 20, 2016 12:51 pm
Forum: VCL
Topic: Manually zooming to a specific region on colorgrids
Replies: 10
Views: 13999

Re: Manually zooming to a specific region on colorgrids

Yeray, Thanks for your response. Attached are 4 ascii text files containing the data I wanted to send. Will you please append these files together in order (1 to 4) and use the appended file as input data for my original test. This will show an image that you can use the mouse to zoom to a specific ...
by dave
Tue Apr 19, 2016 3:52 pm
Forum: VCL
Topic: Manually zooming to a specific region on colorgrids
Replies: 10
Views: 13999

Re: Manually zooming to a specific region on colorgrids

I also have the data file nut it is too large to upload. Its 1 meg zipped, maybe I can email it to you or you? I have actually given it to you before, it's called DataFile.dat
by dave
Tue Apr 19, 2016 11:46 am
Forum: VCL
Topic: Manually zooming to a specific region on colorgrids
Replies: 10
Views: 13999

Re: Manually zooming to a specific region on colorgrids

Yes, I will give you an example here. But, remember SetMinMax works fine for me as well. The problem with it is that it truncates all the data outside the visible region. If I ujse SetMinMax then try to pan using the mouse, the plot is just white, only the original data defined in the "SetMinMax reg...
by dave
Sat Apr 16, 2016 8:06 pm
Forum: VCL
Topic: Manually zooming to a specific region on colorgrids
Replies: 10
Views: 13999

Re: Manually zooming to a specific region on colorgrids

Have also tried this... Chart1.Axes.Top.SetMinMax(Chart1[SIndex].MinXValue * xScaleMul + xScaleOff, Chart1[SIndex].MaxXValue * xScaleMul + xScaleOff ); Chart1.Axes.Right.SetMinMax(Chart1[SIndex].MinYValue * zScaleMul + zScaleOff, Chart1[SIndex].MaxYValue * zScaleMul + zScaleOff ); Chart1.AllowZoom :...
by dave
Sat Apr 16, 2016 7:13 pm
Forum: VCL
Topic: Manually zooming to a specific region on colorgrids
Replies: 10
Views: 13999

Re: Manually zooming to a specific region on colorgrids

I would have thought this would woprk, but the plot is just empty... Chart1.Axes.Top.SetMinMax(Chart1[SIndex].MinXValue * xScaleMul + xScaleOff, // This gives me the +/- 8 on the axis so all data is present Chart1[SIndex].MaxXValue * xScaleMul + xScaleOff ); Chart1.Axes.Right.SetMinMax(Chart1[SIndex...
by dave
Sat Apr 16, 2016 3:20 pm
Forum: VCL
Topic: Manually zooming to a specific region on colorgrids
Replies: 10
Views: 13999

Manually zooming to a specific region on colorgrids

I am using a TColorGridSeries to display my data. The axis extents on my image are +/-8 in both x and y that I set using SetMinMax. When I use your zoom tool, I can zoom way in and then pan to see the image parts that are not visible. Is there a way to specify the zoom on each axis manually? For exa...