SetScale with units including SI prefixes
thomas_braun
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
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"?
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
June 11, 2015 at 11:15 am - Permalink
June 16, 2015 at 08:12 am - Permalink