cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

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

Graphics Scripts ignore Pen color.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );


Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Line( X, Y, Legend( 8 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{Add Graphics Script(
				2,
				Description( "" ),
				Marker Size( 9 );
				Pen Color( "Red" );
				Marker( Marker State( 1 ), [113], [69] );
			), Grid Line Order( 1 ), Reference Line Order( 3 ),
			DispatchSeg(
				TopSeg( 1 ),
				{Set Script(
					Marker Size( 9 );
					Pen Color( "Red" );
					Marker( Marker State( 1 ), [113], [69] );
				)}
			)}
		)
	)
);

// or
/*
gb = dt << Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Line( X, Y, Legend( 8 ) ) )
);
Report( gb )[FrameBox( 1 )] << Add Graphics Script(
	Marker Size( 9 );
	Pen Color( "Red" );
	Marker( Marker State( 1 ), [113], [69] );
);
*/

Why doesn't the marker ever show up as red?

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Graphics Scripts ignore Pen color.

You need to specify a Marker Color, not Pen Color

Marker( Color State( Red ), Marker State( 1 ), [113], [69] );
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Graphics Scripts ignore Pen color.

You need to specify a Marker Color, not Pen Color

Marker( Color State( Red ), Marker State( 1 ), [113], [69] );
Jim
xxvvcczz
Level III

Re: Graphics Scripts ignore Pen color.

Thank you kindly, I found several examples on the forum that said pen color but they all specified it as black and no changes would come through.

 

Appreciate it!

Recommended Articles