cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
a_betancourt
Level I

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.

 

a_betancourt_0-1615326829853.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Format tick mark label in graph builder

Not that I know of.

View solution in original post

4 REPLIES 4

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:

 

initial axes.PNG

 

Right-click or double click the axis (the Y axis in my example) to open the axis settings dialog.

 

axis dialog.PNG

 

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.

 

updated axis.PNG

a_betancourt
Level I

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?

 

Re: Format tick mark label in graph builder

Not that I know of.

Samu
Level II

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.