cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

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

How to move the legend part to the bottom

When using graph builder, how to move the legend part to the bottom of the graph instead of current right side? Is there any part of JSL that could do the changes? Thanks a lot.

1 ACCEPTED SOLUTION

Accepted Solutions
ms
Super User (Alumni) ms
Super User (Alumni)

Re: How to move the legend part to the bottom

I can't find a way to do it by hand, but it's possible with JSL.

Here is one way exanple on how it can be done:

Open( "$ENGLISH_SAMPLE_DATA/Big Class.jmp" );

gb = Graph Builder(

          Show Control Panel( 0 ),

          Variables( X( :age ), Y( :weight ), Y( :height ) ),

          Elements( Position( 1, 1 ), Points( X, Y, ), Smoother( X, Y, ) ),

          Elements( Position( 1, 2 ), Points( X, Y, ), Smoother( X, Y, ) )

);

gbr = Report( gb );

legend = gbr[LegendBox( 1 )];

legend << orientation( "horizontal" );

gbr[Outline Box( 1 )] << append( legend );

legend << delete;

View solution in original post

5 REPLIES 5
ms
Super User (Alumni) ms
Super User (Alumni)

Re: How to move the legend part to the bottom

I can't find a way to do it by hand, but it's possible with JSL.

Here is one way exanple on how it can be done:

Open( "$ENGLISH_SAMPLE_DATA/Big Class.jmp" );

gb = Graph Builder(

          Show Control Panel( 0 ),

          Variables( X( :age ), Y( :weight ), Y( :height ) ),

          Elements( Position( 1, 1 ), Points( X, Y, ), Smoother( X, Y, ) ),

          Elements( Position( 1, 2 ), Points( X, Y, ), Smoother( X, Y, ) )

);

gbr = Report( gb );

legend = gbr[LegendBox( 1 )];

legend << orientation( "horizontal" );

gbr[Outline Box( 1 )] << append( legend );

legend << delete;

judith
Level I

Re: How to move the legend part to the bottom

It works like a magic. Thanks a lot for your help.

judith
Level I

Re: How to move the legend part to the bottom

Hi, one more problem I got now is I can't copy the whole graph to other place. I tried to ctrl-c and ctrl-v and it only allowed me to copy the graph itself, not with legend together. Do you know to how to copy the whole thing in a quick way? Thanks again.

ms
Super User (Alumni) ms
Super User (Alumni)

Re: How to move the legend part to the bottom

Activate the selection tool (a fat plus sign) and select the parts of the report you wish to copy. Sometimes it is easier to select parts if the report is journaled (ctrl-j) firtst. Once properly selected I think ctrl-c would work as expected.

judith
Level I

Re: How to move the legend part to the bottom

There is no plus sign for me to select (grayed out) for graph builder. Anyway, I figured out a way of auto-save the graph into a .jpg file. Thanks for your hint.

Recommended Articles