SetScale with units including SI prefixes

 

 

Hi Igorians,

I have lots of waves having "ms" as x units.
If the x axis range goes over multiple seconds I'd love to have "s" as units as that is more natural.

Using exponential prescaling I can convert the axis labels to seconds, but then the x axis label gets
"kms" (kilo milli seconds) which reads rather odd.

 

 

Make/O/N=2100 data = p
SetScale/P x, 0, 1, "ms", data
ModifyGraph prescaleExp(bottom)=3

 


Is there are a way to tell Igor to simplify the expression "kms" to "s"?

 

Quote:
then the x axis label gets "kms" (kilo milli seconds) which reads rather odd.

But oddly correct, in an odd sort of way :)

I think the only real fix would be to scale your data to seconds, and then Igor will automatically generate mS when needed.

An alternative might be to use the escape codes available under the Units menu in the Modify Axis dialog, Axis Label tab.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com