ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Using AxisMode.AutoScaleExact

Hello,
 
I am creating a Scattergraph and have formatted the x axes to use AutoScaleExact.  Then I set the label formatting. However the first and last X axis values are not formatted.  Only the between values.  When I use AutoScaleLoose it works fine, but I do not want the space between the end of my X values and the graph.
 
Here is some pseudo code
 

NationalInstruments.UI.WindowsForms.ScatterGraph gph;

gph.XAxes[ 0 ].MajorDivisions.LabelFormat = new NationalInstruments.UI.FormatString( NationalInstruments.UI.FormatStringMode.Engineering, "S2" ) );

 
Below is my actual XAxis Data.  The Red numbers are not formatting on the ScatterPlot, but everything between is displayed as   -xx.xx.  
 
-41.0035607596107
-40.0015295290651
-38.996749346679
-37.9992674220449
-36.998142577727
-35.9992276384369
-34.998859261285
-34.001078962965
-32.9919809363304
-32.0111341502177
-30.9959783684086
-29.9953824876186
-29.000555832272
-27.9974909602027
-27.0112169298094
-26.0073849837914
-25.0025153803095
-24.0047350819895
-23.0085242380708
-22.0053854795465
-21.0065053894608
-20.0003115941921
-18.9981814076384
-17.998379656487
-17.0108602825659
-16.0019098545771
-15.0037920905902
-14.0060117922702
-13.0000685535524
-11.9969297950281
-11.0001712701157
-10.0021591197495
-9.00332538531791
 
 So my XAxes is as such.
 
   -41.0035607596107          -30                -20           -9.00332538531791
 
And I want
 
   -41.00          -30.00                -20.00           -9.00
 
 
 
Thanks for any advice,
 
 
 
 
 
The Only Easy Day Was Yesterday.
0 Kudos
Message 1 of 3
(3,512 Views)
Hello

What version of Measurement Studio are you using? I was unable to reproduce this in version 8.0.1.

Bilal Durrani
NI
0 Kudos
Message 2 of 3
(3,494 Views)

 

Thanks for looking into it.

I am referrencing Measurement Studio .NET User Interface Library. The NationalInstruments.UI.   It is version 8.0.11.236.

Matt

The Only Easy Day Was Yesterday.
0 Kudos
Message 3 of 3
(3,462 Views)