cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
maribliss
Level I

How can I move the x-axis on top of graph?

Hi, I'm trying to create a trace element concentration profile and need to have the x-axis (concentrations) at the top of the graph so that it can show how the concentration varies down-core .. Is there any way to do this? 

2 REPLIES 2
ian_jmp
Level X

Re: How can I move the x-axis on top of graph?

If you run this script:

NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = dt << Graph Builder(
	Size( 528, 452 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 6 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"weight",
			ScaleBox,
			{Label Row(
				{Inside Ticks( 1 ), Show Major Grid( 1 ), Show Minor Grid( 1 ),
				Show Minor Labels( 1 )}
			)}
		)
	)
);

it produces:

Screen Shot 2017-11-13 at 09.09.26.png

(which you could make interactively, of course).

I then did 'Edit > Journal' to make a Journal file, then used the 'fat plus' tool to move elements around to make:

Screen Shot 2017-11-13 at 09.07.03.png

David_Burnham
Super User (Alumni)

Re: How can I move the x-axis on top of graph?

Finally we discover a reason why we might want to select the axes in isolation from the graph :)

-Dave

Recommended Articles