cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

Graphics Scripts ignore Pen color.

xxvvcczz
Level III
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!