キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
言語を選択 翻訳バーを非表示
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 件の受理された解決策

受理された解決策
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;

元の投稿で解決策を見る

5件の返信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.

おすすめの記事