Waterfall Plot Zoom

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
PaulcH
Newbie
Newbie
Posts: 5
Joined: Wed Oct 14, 2009 12:00 am

Waterfall Plot Zoom

Post by PaulcH » Tue Sep 28, 2010 10:57 am

I am using a waterfall plot to display the results of a number of FFTs over a set of data, X axis is frequency, Y axis is magnitude and Z axis is time. As part of the display TrackBar controls are provided to change the elevation and to rotate the display. In addition to this pairs of TrackBar controls are used to zoom the X and Z axis, one TrackBar is used to change the lower axis value, the other TrackBar the upper axis value. Thus by moving these TrackBar controls the user can select a frequency range (X axis) and/or a time range (Z axis). The axis values are set via the SetMinMax() call for the axis in question. The Y axis is not zoomed.

The X axis selection works as expected, however the Z axis selection results in a 'disappearance into the distance effect' of points outside the Z axis range selected. I have attached an application to demonstrate this. What I want to happen is for the points outside the selected Z axis range not to be displayed, but I do not want to reload the data as this is time consuming. Am I using the SetMinMax() call correctly for the Z axis, or is there another way to select the Z axis range either via the Depth axis, or the data series?

Many Thanks
Paul
Attachments
WaterfallRotate.zip
Waterfall plot rotate and zoom
(14.88 KiB) Downloaded 256 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Waterfall Plot Zoom

Post by Sandra » Tue Sep 28, 2010 3:44 pm

Hello Paul,

Can you please, confirm us if in below image appears your problem?
Chart1.jpg
Chart1.jpg (80.69 KiB) Viewed 3548 times
Thanks,
Best Regards,
Sandra Pazos / 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

PaulcH
Newbie
Newbie
Posts: 5
Joined: Wed Oct 14, 2009 12:00 am

Re: Waterfall Plot Zoom

Post by PaulcH » Tue Sep 28, 2010 3:53 pm

Hi Sandra

The problem I am hvaing is shown in the attached image, what you get is new to me!!!

Paul
PS Using TeeChart.NET 2009 for .NET 2.0.
Attachments
WaterfallPlot.jpg
WaterfallPlot.jpg (106.63 KiB) Viewed 3474 times

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

Re: Waterfall Plot Zoom

Post by Narcís » Wed Sep 29, 2010 11:24 am

Hi Paul,

Thanks for the screen-shot. This is a known issue with some 3D objects and their painting order in the chart. We have been investigating the issue here and we reached the conclusion huge code changes should be necessary to fix that, which has been discarded for now.

Regarding the issue Sandra found, this can be reproduced with most recent 2010 release available at the client area when charts are non-orthogonal (with modified rotation/elevation) and this code:

Code: Select all

        public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }

        private void InitializeChart()
        {
            Steema.TeeChart.Styles.Waterfall waterFall1 = new Steema.TeeChart.Styles.Waterfall(tChart1.Chart);
            waterFall1.FillSampleValues();

            tChart1.Aspect.Orthogonal = false;
            tChart1.Aspect.Chart3DPercent = 100;
            tChart1.Aspect.Perspective = 58;
            tChart1.Aspect.Rotation = 350;
            tChart1.Aspect.Elevation = 350;
            tChart1.Aspect.Tilt = 0;
            tChart1.Aspect.Zoom = 80;

            tChart1.Axes.Depth.Labels.Visible = true;
            tChart1.Axes.Depth.SetMinMax(15, 20);
        }
I have added the defect to the bug list (TF02015175) to be fixed.
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