cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
Marvin_Bay
Level I

Workflow for exporting good graphics and Axis with arrowheads

Hello, this is my first post and I have 2 questions that may or may not be related.

 

In general I'm new to JMP and I'm trying to create my personal workflow to export graphs to pdf files that always have the same dimensions.

Preferably I'd like to use a script or add-on that changes the look of a given diagram. I'll just list the changes I'd like to see in the diagram and I'm open for some script or add-on suggestions.

 

1. Change the sizes to 15x10 cm (cm would be preferred but if that's not possible pixels would work, too)

2. Change all used fonts to a specific font an size (I don't want to change the main settings since it would be a font with serifs, which I don't like to read on screen)

3. Add an arrowhead to the x- and y-Axis for continuous data 

4. Automatically export the diagram as pdf

 

Is this task doable at all?

If yes: where could I best look up how to do it?

 

Thanks for helping me out

3 REPLIES 3
ron_horne
Super User (Alumni)

Re: Workflow for exporting good graphics and Axis with arrowheads

Hi @Marvin_Bay and welcome to the forum.

nothing is impossible. but in order for anyone here to help you please upload a file with a script that produced your basic graph with arrows. we will try to guide you to make the changes you want and also generalize the process.

ron

 

Craige_Hales
Super User

Re: Workflow for exporting good graphics and Axis with arrowheads

The arrow heads on the axis are an interesting challenge!

Perhaps saving to SVG, opening the SVG as XML, identify the axis...

Too much on my plate right now.

Craige
Marvin_Bay
Level I

Re: Workflow for exporting good graphics and Axis with arrowheads

I just created some random data with a plot made in graph builder.

The first script generates the plot as it would do when I normally start graph builder.

The second script changes the dimensions of the plot and the fonts for all elements one by one.

 

What I'd like to have in the end is a script which I can just use on almost any plot to add arrowheads to axis with continuous data and change size and all used fonts. Ten either manually export the plot or have a separate script which exports the plot as pdf file.

 

 

2nd script:

Graph Builder(
	Size( 1535, 865 ),
	Variables( X( :x ), Y( :y ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"x",
			ScaleBox,
			{Label Row( {Set Font( "CMU Serif" ), Set Font Size( 14 )} )}
		),
		Dispatch(
			{},
			"y",
			ScaleBox,
			{Label Row( {Set Font( "CMU Serif" ), Set Font Size( 14 )} )}
		),
		Dispatch(
			{},
			"graph title",
			TextEditBox,
			{Set Font( "CMU Serif" ), Set Font Size( 14 )}
		),
		Dispatch(
			{},
			"X title",
			TextEditBox,
			{Set Font( "CMU Serif" ), Set Font Size( 14 )}
		),
		Dispatch(
			{},
			"Y title",
			TextEditBox,
			{Set Font( "CMU Serif" ), Set Font Size( 14 )}
		),
		Dispatch( {}, "400", LegendBox, {font( "CMU Serif", 14, "Plain" )} )
	)
)