LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically change primary and secondary Y-Axis range

Ok, so the idea is that I have a chart with two different data types on it.  One is plotted on the primary Y-axis on the left side and the other is on the secondary Y-axis on the right side.  Both share the same X-axis.

 

How do I change the range seperately for the primary Y-axis and secondary Y-axis?  Whats currently happening is no matter which "Active Plot" or "Y-Axis Index" I select, it only changes the range for the secondary axis.  Any help would be amazing!

0 Kudos
Message 1 of 4
(3,518 Views)

We are going to need to see some code to help with this.  and some clarification sinc a "Chart" cannot have multiple y axes

 

Assuming you have an XY Graph this little code demonstrates how to set the scales min and max programatically

Capture1.PNG


"Should be" isn't "Is" -Jay
Message 2 of 4
(3,508 Views)

This is what I was looking for.  For a few hours I was trying to do this with the properties "Active Plot" and "Y axis Index".  Thanks to you I now know about "Active Y Scale"

0 Kudos
Message 3 of 4
(3,496 Views)

I would not like to be boring here... but a chart CAN have multiple Y scales...

 

Right click on first scale >> duplicate scale

 

Smiley Wink

0 Kudos
Message 4 of 4
(3,442 Views)