LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to programmatically swap a scale?

I think I already know the answer, but I am hoping one of you veteran wireworkers can suggest something I haven't thought of. I am creating a graph which is fully customizable from XML file. I have included the capacity to add n yscales, and I would like to be able to programmatically set their positions (i.e., left or right). Any thoughts?

Chris
0 Kudos
Message 1 of 3
(2,992 Views)

I may be missing something, but have you tried ActiveYScale and then Yscale>>Position property?

0 Kudos
Message 2 of 3
(2,976 Views)
Boy has this been a rathole. I played with Y Scale position, but it appears that the Plot Area bounds and position are determined by the Y Scale position. I can move the scale, but the plot moves too (and it is always to the right of the scale). I also noticed that I can't create a new scale by indexing the ActYScl index. If no scale exists, it doesn't create a new one. I didn't see any methods to create a new scale or switch it to the other side of the Plot Area. I am going to punt. I'll create two scales (one on each side) and allow the configuration of whether each scale is visible or not.

It still seems interesting to investigate this, but I don't have any more time to spend on it.

Thanks for the suggestion,
Chris
0 Kudos
Message 3 of 3
(2,958 Views)