Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Symbolic Notation on MS2009 Graph Axis Labels?

Solved!
Go to solution

I am using Measurement Studio 2009 (C#) to display waveform graphs. 

 

How can I format the major division labels of an XAxis (or YAxis) such that:

- A value of 1000 will display as "1k".

- A value of 0.001 will display as "1m".

- etc.

 

What I am looking for is equivalent to the following in Measurement Studio 8 (C++)

- CNiAxis::FormatString = "k"

- This was called 'symbolic notation'.

 

I looked into .MajorDivisions.LabelFormat but I'm not quite sure how to make this do what I'm looking for.

 

Any advice would be greatly appreciated.  Thank you.

0 Kudos
Message 1 of 3
(3,425 Views)
Solution
Accepted by topic author ADombroski

You should try somthing like:

 

xAxis1.MajorDivisions.LabelFormat = new FormatString(FormatStringMode.Engineering, "s");

 

NickB

National Instruments

0 Kudos
Message 2 of 3
(3,422 Views)

Thank you.  That was just what I was looking for.  Much obliged.

0 Kudos
Message 3 of 3
(3,401 Views)