Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set values of X axis

Hello.

 

I am working on Intensity graph. How can I change the axis's scales(Linear or logarithm) and the values of "X and Y Axis". 

Since my application is regarding to Sound Measurement, the property of X axis is Frequency which is normally scaled as "Logarithmic scale".

However, the Intensity Graph, I am working on, show only linear graph.

 

Please help me.

 

Thank you.

 

0 Kudos
Message 1 of 4
(6,229 Views)

The Measurement Studio Windows Forms Intensity Graph does not support logarithmic scale types for the X or Y Axis. The Color Scale can be logarithmic. Also, the WPF Intensity Graph does support logarithmic scale types. If you would like to see log scales added to Windows Forms Intensity Graphs, you can create an idea in the Measurement Studio Idea Exchange. Sorry for the inconvenience.

 

National Instruments
0 Kudos
Message 2 of 4
(6,181 Views)

Hello.

 

I am working on Intensity graph. How can I change the axis's scales(Linear or logarithm) and the values of "X and Y Axis". 

This is my setting:

the xlms设置为:

 

<ni:IntensityGraph x:Name="graph" Height="{Binding ElementName=LayoutRoot, Path=Height}" Width="{Binding ElementName=LayoutRoot, Path=Width-40}" MaxHeight="600" MaxWidth="880">
<ni:IntensityGraph.ColorScale>
<ni:ColorScale LowColor="Red" HighColor="Green" ScaleKind="Linear">
<ni:ColorScale.Markers >
<ni:ColorScaleMarker Value="0" Color="Yellow" />
<ni:ColorScaleMarker Value="0.04" Color="White" />
<ni:ColorScaleMarker Value="0.08" Color="Blue" />
</ni:ColorScale.Markers>
</ni:ColorScale>
</ni:IntensityGraph.ColorScale>
<ni:IntensityGraph.HorizontalAxis>
<ni:AxisDouble IsInverted="False" />
</ni:IntensityGraph.HorizontalAxis>
<ni:IntensityGraph.VerticalAxis>
<ni:AxisDouble />
</ni:IntensityGraph.VerticalAxis>
</ni:IntensityGraph>

 

 

 

List<System.Windows.Media.Media3D.Point3D> point3Dlist = new List<System.Windows.Media.Media3D.Point3D>();
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
{
System.Windows.Media.Media3D.Point3D point3D = new System.Windows.Media.Media3D.Point3D();
point3D.X = i*0.01;
point3D.Y = j;
point3D.Z = i*0.01;
point3Dlist.Add(point3D);
}
graph.DataSource = point3Dlist;

 

 

 

the result is:

test.png

 

so I find the result is terrible

 

Please help me.

 

Thank you

0 Kudos
Message 3 of 4
(6,164 Views)

Hello.

 

I am working on Intensity graph. How can I change the axis's scales(Linear or logarithm) and the values of "X and Y Axis". 

This is my setting:

the xlms设置为:

 

<ni:IntensityGraph x:Name="graph" Height="{Binding ElementName=LayoutRoot, Path=Height}" Width="{Binding ElementName=LayoutRoot, Path=Width-40}" MaxHeight="600" MaxWidth="880">
<ni:IntensityGraph.ColorScale>
<ni:ColorScale LowColor="Red" HighColor="Green" ScaleKind="Linear">
<ni:ColorScale.Markers >
<ni:ColorScaleMarker Value="0" Color="Yellow" />
<ni:ColorScaleMarker Value="0.04" Color="White" />
<ni:ColorScaleMarker Value="0.08" Color="Blue" />
</ni:ColorScale.Markers>
</ni:ColorScale>
</ni:IntensityGraph.ColorScale>
<ni:IntensityGraph.HorizontalAxis>
<ni:AxisDouble IsInverted="False" />
</ni:IntensityGraph.HorizontalAxis>
<ni:IntensityGraph.VerticalAxis>
<ni:AxisDouble />
</ni:IntensityGraph.VerticalAxis>
</ni:IntensityGraph>

 

 

 

List<System.Windows.Media.Media3D.Point3D> point3Dlist = new List<System.Windows.Media.Media3D.Point3D>();
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
{
System.Windows.Media.Media3D.Point3D point3D = new System.Windows.Media.Media3D.Point3D();
point3D.X = i*0.01;
point3D.Y = j;
point3D.Z = i*0.01;
point3Dlist.Add(point3D);
}
graph.DataSource = point3Dlist;

 

 

 

the result is:

test.png

 

so I find the result is terrible

 

Please help me.

 

Thank you

0 Kudos
Message 4 of 4
(6,163 Views)