Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WaveFormPlot MapDataPoints not working

Hi,

 

I am trying to use the MapDataPoints and InverseMapDataPoints with Waveformplots. however there is some error in the conversion with respect to what is visible. 

 

I am using PlotAreaMouseMove event to capture mouse movements in the plot area and I want to display the x and y coordinates of the cursor to user. For this i am using InverseMapdatapoints to get the value. however the values returned are different from what is visible along the cursor.

 

  public void ConvertToGraphCoordinate(int index, int mouseX, int mouseY,out double X, out double Y)
        {
            PointF ptf = new PointF(mouseX, mouseY);
            m_GraphList[index].Plots[0].InverseMapDataPoint(m_GraphList[index].Bounds  , ptf, out X, out Y);
             }

 

I have tried above with passing m_GraphList[index].PlotAreaBounds also however the error is more with that.

 

I see that there is some bug related to how the Waveform plots its data in some of the posts. (ref: he bug report ID is 164969). Seems there was some problem with inversemapdatapoints and mapdatapoints.

 

Please tell me if the bug hass been resolved?

 

Regards,

 

Alok Damle

0 Kudos
Message 1 of 1
(3,158 Views)