cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

Discussions

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

Changing Legend Settings in bulk

How do I change Legend Settings, e.g., Item Wrap, in bulk when I have tons of plots in a report? Can't find a way similar to Ctrl + Copy/Paste Customization

 

Untitled.jpg

1 ACCEPTED SOLUTION

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

Re: Changing Legend Settings in bulk

The usual way of pressing cmd/ctrl key to send a message to all graphs does not seem to work for the legend settings. It is, however, quite straightforward with JSL and xpath.

 

Example:

Names Default To Here(1);

//Example report with multiple graphs
dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = Expr(
    dt << Graph Builder(Variables(X(:weight), Y(:height), Overlay(:age)), <<Done)
);
New Window("test", gb, gb, gb);

//Set wrap for all legends
(Current Report() << xpath("//LegendBox")) << Set Wrap(2);

View solution in original post

2 REPLIES 2
ms
Super User (Alumni) ms
Super User (Alumni)

Re: Changing Legend Settings in bulk

The usual way of pressing cmd/ctrl key to send a message to all graphs does not seem to work for the legend settings. It is, however, quite straightforward with JSL and xpath.

 

Example:

Names Default To Here(1);

//Example report with multiple graphs
dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = Expr(
    dt << Graph Builder(Variables(X(:weight), Y(:height), Overlay(:age)), <<Done)
);
New Window("test", gb, gb, gb);

//Set wrap for all legends
(Current Report() << xpath("//LegendBox")) << Set Wrap(2);
yfu23
Level II

Re: Changing Legend Settings in bulk

This does the job just fine. Thank you ms, I appreciate it!!

Recommended Articles