Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to move the Y-axis independently of other Y-axes

Hi,

 

I am using scatter graph, having multiple plots. The scatter graph is shown with multiple Y-axes with a common X axis. Desired Y-axis can be  selected by the user (as shown in the fig-1).

 

What I need to achieve is, the user can move (up or down) the selected Y-axis of the graph independent of the other Y-axes present in the graph as shown in fig-2 (down) and fig-3 (up).

 

I have depicted the above mentioned scenario in attached sample graph. The scatter graph contains 2 Y-axis for graph1 and graph2. Currently the Y-axis of graph-2 is selected.

 

fig-1 shows the actual graph

fig-2 shows that Y-axis of graph2 has been moved downward 1unit

fig-3 shows that Y-axis of graph2 has been moved upward 1unit.

 

I think it can be achieved through panning, but panning moves all the graphs.

 

Kindly guide through some sample code.

 

Thankyou.

 

 

0 Kudos
Message 1 of 4
(5,890 Views)

If each plot is assigned to its own Y-axis, changing the range of one axis should not affect the other. Are you sure that each plot has been assigned a unique axis as shown here?

 

How is the desired y-xais selected by the user?

How are you moving the axis up and down?

Is there a reason why you can not display both Y Axes?

 

 

 

Regards,

Anjelica W.
National Instruments
Product Marketing Manager
FlexLogger and TestStand
0 Kudos
Message 2 of 4
(5,872 Views)

Actually I dont want to change the range. I just want to move the selected graph upwards or downwards, without disturbing the other graph. As I have demonstrated in the attachment.

 

As I have mentioned earlier the required functionality is just like panning, but the problem is that by doing so both the graphs move.

 

Thankyou.

0 Kudos
Message 3 of 4
(5,865 Views)

It does not appear to be possible to move the plots individually. The panning properties can only be set for the ScatterGraph as a whole. Can you provide more details on why you need to move the graphs individually?

Regards,

Anjelica W.
National Instruments
Product Marketing Manager
FlexLogger and TestStand
0 Kudos
Message 4 of 4
(5,847 Views)