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
Giardini
Level II

Changing the width of the grid lines

Doesn't anyone know how to change the  grid line width? I would be most grateful for an answer on how to do it using JSL JMP alhough an answer how to do it manually, would also be useful for me.

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Changing the width of the grid lines

I am not aware of direct way to change the thickness of a Grid line.  However, maybe, if what you want to do is to make the grid lines more prominent, you could change the color to a less demure color, like black.

To do this, you change the Major Grid Line Color in JMP Preferences, in the Styles section..

txnelson_0-1705502995114.png

Using JSL, the following changes the preference

Names Default To Here( 1 );
//Caution: Changing a preference will 
//affect the default behavior of JMP. 

Preferences[1] << Set( Major Grid Line Color( "Blue" ) );

Finally, it is possible using JSL to add graphic primitives to the graph, where you could add lines to the graph, and in there, the thicknes of the line iis adjustable.

Names Default To Here( 1 );
New Window( "Line Style Example",
	Graph Box(
		Frame Size( 500, 400 ),
		named line styles = {"Solid", "Dotted", "Dashed", "Dash Dot",
		"Dash Dot Dot", "Dash Dash Dot", "Dash Dash Dot Dot", "Long Dash",
		"Long Dash Dash", "Dense Dash", "Sparse Dash", "Sparse Dot",
		"Sparse Dash Dot"};
		For Each( {istyle, i}, named line styles,
			{x = 5 :: 75, y = 12 * Sin( x / 12 )},
			Text(
				{x[N Items( x )] + 1, y[N Items( y )] + 92 - 6 * i - 1.5},
				istyle
			);
			Line Style( istyle );
			Pen Size( 3 );
			Line( x, y + 92 - 6 * i );
		);
	)
);

txnelson_1-1705503529480.png

This example is taken from the Scripting Index, using a Graph Box to build the display.  However, the same primitives can be added to any JMP graph using

<< add Graphics Script( <the script? );

where using the Line() function, you can add lines to the graph at any interval desired.

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Changing the width of the grid lines

I am not aware of direct way to change the thickness of a Grid line.  However, maybe, if what you want to do is to make the grid lines more prominent, you could change the color to a less demure color, like black.

To do this, you change the Major Grid Line Color in JMP Preferences, in the Styles section..

txnelson_0-1705502995114.png

Using JSL, the following changes the preference

Names Default To Here( 1 );
//Caution: Changing a preference will 
//affect the default behavior of JMP. 

Preferences[1] << Set( Major Grid Line Color( "Blue" ) );

Finally, it is possible using JSL to add graphic primitives to the graph, where you could add lines to the graph, and in there, the thicknes of the line iis adjustable.

Names Default To Here( 1 );
New Window( "Line Style Example",
	Graph Box(
		Frame Size( 500, 400 ),
		named line styles = {"Solid", "Dotted", "Dashed", "Dash Dot",
		"Dash Dot Dot", "Dash Dash Dot", "Dash Dash Dot Dot", "Long Dash",
		"Long Dash Dash", "Dense Dash", "Sparse Dash", "Sparse Dot",
		"Sparse Dash Dot"};
		For Each( {istyle, i}, named line styles,
			{x = 5 :: 75, y = 12 * Sin( x / 12 )},
			Text(
				{x[N Items( x )] + 1, y[N Items( y )] + 92 - 6 * i - 1.5},
				istyle
			);
			Line Style( istyle );
			Pen Size( 3 );
			Line( x, y + 92 - 6 * i );
		);
	)
);

txnelson_1-1705503529480.png

This example is taken from the Scripting Index, using a Graph Box to build the display.  However, the same primitives can be added to any JMP graph using

<< add Graphics Script( <the script? );

where using the Line() function, you can add lines to the graph at any interval desired.

Jim
Giardini
Level II

Re: Changing the width of the grid lines

I know the first method you mentioned, but I haven't thought about the second one. Thanks a lot! If I don't find the right way to reduce the width of gride lines, I'll probably use this.