cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
lala
Level IX

Modify the default Settings to make the selected graphic lines in the image generator thicker

Thanks!

dt=Open("$SAMPLE_DATA/Big Class.jmp");
Graph Builder(
	Show Control Panel(0),
	Variables(X(:height), Y(:weight), Overlay(:sex)),
	Elements(Points(X, Y, Legend(1)), Smoother(X, Y, Legend(2))),
	SendToReport(
		Dispatch({}, "Graph Builder", FrameBox,
			{MarkerSize(2), Marker Drawing Mode("Normal")}
		)
	)
);

2025-04-23_10-27-38.png

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Modify the default Settings to make the selected graphic lines in the image generator thicker

So then don't start messing with preferences but rather modify the graph?

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb = dt << Graph Builder(
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(13)), Smoother(X, Y, Legend(14))),
	SendToReport(
		Dispatch({}, "Graph Builder", FrameBox,
			{Marker Selection Mode("Selected Larger")}
		)
	)
);

or send it as a message to graph builder

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb = dt << Graph Builder(
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(13)), Smoother(X, Y, Legend(14)))
);

Report(gb)[FrameBox(1)] << Marker Selection Mode("Selected Larger");

Most likely you could also use preset

-Jarmo

View solution in original post

5 REPLIES 5
jthi
Super User

Re: Modify the default Settings to make the selected graphic lines in the image generator thicker

I think the change you can do will affect selected markers also

jthi_0-1745386225764.png

 

-Jarmo
lala
Level IX

Re: Modify the default Settings to make the selected graphic lines in the image generator thicker

How to complete this setting with JSL?

Thank jthi !

 

Including the script for canceling such Settings.

jthi
Super User

Re: Modify the default Settings to make the selected graphic lines in the image generator thicker

I have to ask: why would you want to mess with preferences with JSL? It is very difficult to return them to original ones as there can be many issues where weird things happen and you won't be able to return them back -> used will be left with something which they do not want to have.

 

Set Preference() is the command you would use to change the preferences

jthi_0-1745413672096.png

Show Preferences() and Get Preferences() can be helpful when you try to figure out which preference you want to set

Get Preferences(Marker Selection Mode);
-Jarmo
lala
Level IX

Re: Modify the default Settings to make the selected graphic lines in the image generator thicker

I only need such a setting for one specified graphic, but not for the others

 

So there is a thought that when this graphic needs to be used, it can be controlled to be bolded through JSL, and after the graphic is used, it can be automatically set back to the normal state of not bolding through a script

 

Thanks!

jthi
Super User

Re: Modify the default Settings to make the selected graphic lines in the image generator thicker

So then don't start messing with preferences but rather modify the graph?

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb = dt << Graph Builder(
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(13)), Smoother(X, Y, Legend(14))),
	SendToReport(
		Dispatch({}, "Graph Builder", FrameBox,
			{Marker Selection Mode("Selected Larger")}
		)
	)
);

or send it as a message to graph builder

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb = dt << Graph Builder(
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(13)), Smoother(X, Y, Legend(14)))
);

Report(gb)[FrameBox(1)] << Marker Selection Mode("Selected Larger");

Most likely you could also use preset

-Jarmo

Recommended Articles