- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Format tick mark label in graph builder
All-
I need to format the tick mark label for a log axis to show the number with 10 as base and the power as superscript (10²)
Please let me know if you know how to do this.
The example below shows what I want to achieve.
Thanks.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Format tick mark label in graph builder
Not that I know of.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Format tick mark label in graph builder
You can modify the axis settings to suit your need.
Here is the initial plot using default log scale:
Right-click or double click the axis (the Y axis in my example) to open the axis settings dialog.
Use the settings on the left side to use the log type of axis, the minimum and maximum to start on a power of ten, the log base of 10, and the number of tick marks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Format tick mark label in graph builder
Thanks for that.
What I am referring is to the format of the tick label specifically.
In the example you provided, the format for the tick label of 1000 is "1000." If I switch to scientific format it is going to be "1.0e+3." Following this example, I want the label to be displayed simply as "10³ ."
Is there some type of custom format that would show this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Format tick mark label in graph builder
Not that I know of.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Format tick mark label in graph builder
There exist symbols for each number (and a minus) in superscript: ⁻¹²³⁴⁵⁶⁷⁸⁹⁰
You can simply hardcode relabel all of your labels using some sort of variation of
SendToReport(
Dispatch(
{},
"column here",
ScaleBox,
{
Label Row(1, {Tick Mark( Label( 1 ), Label( "10⁰" ) )})
}))
(not tested - probably best to do some labels by hand and then copy the script and continue it)
Or use the Tick Label List function (see scripting index) and do some kind of dynamic evaluation of what values will show up, but again it's probably easier to hardcode a large range.