LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Graph Chart to original

Hi Everybody,

after my test runs I plot some values in a graph chart, I also have graph palette bar. My problem is , when I use zoom from graph palette ,I can`t turn back to original chart again.

I want to put a button in GUI which should show the original graph when pressed.

Any idea or solution suggestion?

Best Regards
silver
0 Kudos
Message 1 of 3
(3,157 Views)
Two ways,
 
Medthod 1.  Rt-click the graph, select Visible Items...Graph Palette.  The center button on the graph palette shows a popup for zooming.  The bottom left function on the popup will rezoom the data in your graph to best fit.
 
Method 2.  If you would like to programmatically autoscale the X and Y axis, you can set the YScale.ScaleFit property of the graph or chart.  It can be set to Do not Autoscale, Autoscale Once, and Autoscale.  If you set it to Autoscale Once, it will best fit your data.
  1. Put a property node on your block diagram (rt-click chart...create...Property Node...Active Y Scale). 
  2. Rt-click the property node, select Change all to Write.
  3. Wire "0" to ActYScl to set properties for the y-scale
  4. Expand the property node to show another property
  5. Select Scale Fit property (Y Scale...Scale Fit)
  6. Wire "1" to the property to Autoscale once
Message 2 of 3
(3,152 Views)
my chart has a scroll bar for X -Axis (time stamp) , I tried what you adviced but then it tries to fit all the values in X Axis. What I want is it should still has scroll function, no autoscale.

I just want to build a button which should return the graph back to original . ( Iplot many values , and the user scrolls it if necesaary)

now any advice?

reagards
0 Kudos
Message 3 of 3
(2,997 Views)