Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
Martin
Level IV

Graph Builder Y-axis custom scale to 1x10^n

Hello,

 

I am trying to set the y-axis on a graph builder (which spans several logs) to a major axis of "1x10n" where the n is a superscript.  I want it to look like the attached picture.

 

Is there a way to do this? If so, how?

 

Thank you!

 

Martin_0-1587479700300.png

 

3 REPLIES 3
Highlighted
txnelson
Super User

Re: Graph Builder Y-axis custom scale to 1x10^n

Here is a simple graph builder log.PNG

That was created using the script below, with the max value of the Y axis set using your formula, with your n value set to 7

names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

gb = dt << Graph Builder(
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"height",
			ScaleBox,
			{Scale( "Log" ), Format( "Best", 6 ), Min( 48.2580966150752 ),
			Max( 71.2073042511286 ), Inc( 1 ), Minor Ticks( 1 )}
		)
	)
);

report(gb)[AxisBox(2)] << max (1*10^7);
Jim
Highlighted
Martin
Level IV

Re: Graph Builder Y-axis custom scale to 1x10^n

Thanks Jim, but I specifically want the formal of "1x10" with the log number superscripted, just like the graphic I posted.
Highlighted
txnelson
Super User

Re: Graph Builder Y-axis custom scale to 1x10^n

ah......my misinterpretation
Jim
Article Labels

    There are no labels assigned to this post.