I wished there was a consistent marker control in Graph Builder.
The wish is from August (2025):consistent marker control in Graph Builder It seems that someone else had the same wish, because here it is [1st part]!
A new era of style control in Graph Builder / JMP19:
Names Default to Here(1); dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" ); Graph Builder( Size( 590, 412 ), Graph Spacing( 4 ), Variables( X( :name ), Y( :weight ), Y( :height ), Color( :sex ) ), Elements( Position( 1, 1 ), Points( X, Y, Legend( 1 ) ) ), Elements( Position( 1, 2 ), Points( X, Y, Legend( 2 ) ) ), Column Switcher( :sex, {:age, :sex} ), SendToReport( Dispatch( {}, "400", ScaleBox, {Legend Model( 1, Type Properties( 0, "Marker", {Marker( "Circle" )} ) ), Legend Model( 2, Type Properties( 0, "Marker", {Marker( "FilledCircle" )} ) )} )) );
In the Scripting Index, I could not find further documentation about the new feature:https://jsl.jmp.com/search.html?q=Type+Properties
I guessit works along the idea: if all items of one plot type have the same setting, then this setting is saved via Type Properties() to the Legend Group.
Important: default settings (marker = dot, color=black, line style: solid) are not saved (!!) * ) *) further details about this behavior can be found in a previous post:https://community.jmp.com/t5/Discussions/Do-you-use-the-preferences/m-p/913487/highlight/true#M107338
Not only for Marker Styles ; )
Graph Builder( Size( 466, 312 ), Show Control Panel( 0 ), Graph Spacing( 4 ), Variables( X( :name ), Y( :weight ), Y( :height ), Overlay( :sex ) ), Elements( Position( 1, 1 ), Line( X, Y, Legend( 3 ) ) ), Elements( Position( 1, 2 ), Line( X, Y, Legend( 4 ) ) ), Column Switcher( :sex, {:age, :sex} ), SendToReport( Dispatch( {}, "400", ScaleBox, {Legend Model( 4, Base( 0, 0, 0, Item ID( "F", 1 ) ), Base( 1, 0, 1, Item ID( "M", 1 ) ), Type Properties( 0, "H Line", {Line Style( "Dashed" )} ) )} ) ) );
The new feature for the lines is very helpful.
Looking at consistent marker control in Graph Builder , the new feature is exactly proposed mode:
Very helpful will be the mode:
e.g. to generate the first graph with hollow markers and the second graph with filled markers.or to use the left axis for hollow markers and the right axis for filled markers.
I just tried Type Properties( 0, "Marker", {Marker( "Hollow" )} ):<BR />but it doesn't work.
Type Properties( 0, "Marker", {Marker( "Hollow" )} ):<BR />
Type Properties(), in combination with colors: useful to batch assign a color to all entries - but one:
Names Default to Here(1); dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" ); Graph Builder( Variables( X( :name ), Y( :weight ), Color( :age ) ), Elements( Position( 1, 1 ), Points( X, Y, Legend( 1 ) ) ), SendToReport( Dispatch( {}, "400", ScaleBox, { Legend Model( 1, Type Properties( 0, "Marker", { Line Color( 81 )} ), Properties( 1, {Line Color( 3 )}, Item ID( "15", 1 ) ) )} )) );