03-18-2013 03:46 AM
Hi All,
Is there any way to programmatically set the position of the X axis on an X,Y graph? After I have loaded data into the XY graph I want the graph to scroll from left to right at a set speed showing the data from start to end.
For example if I have data that spans along the X axis from 1-50 can I programmatically set 5 to be in the centre of the screen which then shows me data between 0-10 based on a fixed X axis scale of 1-10 (already set)? For the sake of clarity if I then set the program to centre point 20 (as opposed to 5) it then shows me data between 15 and 25.
In this way using a timing loop I could make it look like my XY graph is moving or jumping to relavent sections. It could also be driven via an external source souce as a remote control with numbers.
Thanks for any help.
Wes
Solved! Go to Solution.
03-18-2013 04:18 PM
You create a property node for the graph and select the X Scale>>Range>>Maximum and Minimum properties and then you update them according to your logic. Be sure to also right click the scale and disable autoscaling first.
03-18-2013 07:18 PM
Yep, that's the solution. Thanks alot for another fix, works perfectly.
Do you have any idea if I can superimpose a picture or image onto an XY graph to show a graphic (just in the plot area, not moving with the data)? Until now I've been moving an annotation along the graph data but now that I can move the graph programmatically I can reverse the concept. I.e. move the graph under a stationary object (a superimposed picture/graphic in this case). I think I've heard of people doing this but can't remember how.
Cheers,
03-18-2013 07:22 PM
The graph has properties which allow you to set foreground and background images. I never used them, so I can't comment on exactly how they work.