Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

autoscale wpf graph

Solved!
Go to solution

How do I autoscale WPF graph on request? When working with WF graphs, I used something like this (enable autoscale, then disable it):

 

((AxisDouble)graph.Axes[0]).Adjuster = RangeAdjuster.FitLoosely;
((AxisDouble)graph.Axes[1]).Adjuster = RangeAdjuster.FitLoosely;

((AxisDouble)graph.Axes[0]).Adjuster = RangeAdjuster.None;
((AxisDouble)graph.Axes[1]).Adjuster = RangeAdjuster.None;

 

but in WPF graph it has no effect

0 Kudos
Message 1 of 4
(6,380 Views)
Solution
Accepted by topic author eugenem

The WPF graph does not immediately redraw all data when the Adjuster on an axis changes. To do so manually, you can call the Refresh method on the graph. From your example:


    ((AxisDouble)graph.Axes[0]).Adjuster = RangeAdjuster.FitLoosely;
    ((AxisDouble)graph.Axes[1]).Adjuster = RangeAdjuster.FitLoosely;
    graph.Refresh();
    ((AxisDouble)graph.Axes[0]).Adjuster = RangeAdjuster.None;
    ((AxisDouble)graph.Axes[1]).Adjuster = RangeAdjuster.None;

~ Paul H
0 Kudos
Message 2 of 4
(6,377 Views)

how to use dendrogram graph in labview?

 

exempl

 

Z =

    4.0000    5.0000    1.0000
    1.0000    3.0000    1.0000
    6.0000    7.0000    2.0616
    2.0000    8.0000    2.5000

 

this graph is a dendrogram

 

 

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

Hi guerreirodopara,

 

This thread is super old (the last post was from late 2012), so you're much more likely to get some responses if you make a new thread instead of trying to resurrect this one. Furthermore, your question would probably be better suited to the LabVIEW board instead of the Measurement Studio board, so I'd suggest making a new thread there to see if anyone has any advice for making a dendrogram in LabVIEW.

 

Cason

Applications Engineering, NI

Cassandra Longley
Senior Technical Support Engineer - FlexRIO, High Speed Serial and VRTS
0 Kudos
Message 4 of 4
(3,847 Views)