cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
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!