Hello everybody,
I do a Parallel Plot and I use a variable to color the lines. For example I use the following script with Big Class table:
obj = Graph Builder(
Size( 636, 660 ),
Variables( X( :height ), X( :weight, Position( 1 ) ), Color( :age ) ),
Elements( Parallel( X( 1 ), X( 2 ), Legend( 3 ) ) )
);
Then I would like to modify the width of the line. I tried to run this:
frame = Report( obj )[FrameBox(1 )];
seg = frame << Find Seg( "Polyline Seg" );
seg << Set Line Width(3);
but it modified only the lines associated with the first level of my Color variable (age in this example).
How could I modify all lines simultaneously? Should I use the Dispatch function when I create the graph? However I don't really know how to handle it, since I do not know in advance the number of levels of the Color variable.
Thanks in advance for your help!
Not sure why your code does not work as intended for you. It works for me (JMP 15 for Mac).
An alternative approach is to use Xpath.
(obj << xpath( "//PolylineSeg" )) << Set Line Width( 3 );
Thanks @ms and @Thierry_S for your answers!
My objective is indeed to change the line width of the graph and not only of the legend.
I pick the solution of @ms since it is a bit shorter but both work like a charm! 