Hi CC,
I think the attached zip should demonstrate this undesirable behaviour.
In the zip you will find two VIs (in LV 7.1) and a jpg of the diagram that demonstrates this issue.
Thank you for the morning entertainment!
The Vi labeled "show n hide1.vi" is my imppesion of your description. It is a slight variation because I was curious if this behaviour was intermitant or predicatble.
It is predicatable! (I believe...)
In my variation, I track the Y-left position and the state of the show/hide and range. The history is then plotted.
If you carefully examine the history plot, you will see that if the Y-scale is visable when the range is changed, the Y-Left values is constant.
If the Y-scale is not visable, the Y-left will shift back
and forth to adapt to the range changes. I think this is a bug.
The history shows that if there were an even number of scale shifts while the plot is invisable, it will appear at the same Y-left value as when was last visable.
If there was an odd number of scale changes, the Y-left retains a new value.
If you time it right the plot can walk right off to never never land.
So...
After observing that the Y-left value did not shift when the Yscale.visable was true I tried forcing the visable property to true prior to the range change and then invoked the Yscale.visable property again, this time using the stae of my FP boolean.
This is shown in "Show n Hide2.vi".
Surprisingly, this apears to be a work-around.
I did not notice the scale flickering while I was testing so it appears the XY graph is only being updated after the entire property node completes.
By setting the visable property true before the scale change, the code that positions the Y-left value seems
to work without a problem.
This test also implies a fix (provided this goes un-explained and warrents a CAR).
I will watch to see hese guesses withstand time.
Go eye CC!
Trying to help,
Ben