cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

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

copy and paste the Y-axis settings to all the CDF plots

in JMP Version 16.2.0, I have several CDF plots in one window, if i want to copy the Y-axis of 1st plot and paste to all of plots at one shot, how can i do it? 

i dont want to paste it one by one, i want to paste all of them at one shot.

in general, we use "Ctrl" button to make it,  like as paste the Y-axis for Biv fit plots, but for CDF plot, if we do the same way, the X-axis settings are also pasted at the same time.

How can I fix this? I scratched my hair crazy, but it didn’t help!!

Yajing_0-1761620576190.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: copy and paste the Y-axis settings to all the CDF plots

If broadcasting doesn't work properly, you might have to "improve it" with some JSL. Below is one example of what you could possibly do

Names Default To Here(1);

abs = Current Report() << XPath("(//OutlineBox[text()='CDF Plot']//AxisBox)");

abs[1] << Copy Axis Settings;
abs[1::N Items(abs)::2] << Paste Axis Settings;
-Jarmo

View solution in original post

6 REPLIES 6
jthi
Super User

Re: copy and paste the Y-axis settings to all the CDF plots

If broadcasting doesn't work properly, you might have to "improve it" with some JSL. Below is one example of what you could possibly do

Names Default To Here(1);

abs = Current Report() << XPath("(//OutlineBox[text()='CDF Plot']//AxisBox)");

abs[1] << Copy Axis Settings;
abs[1::N Items(abs)::2] << Paste Axis Settings;
-Jarmo
hogi
Level XIII

Re: copy and paste the Y-axis settings to all the CDF plots

and maybe in addition:

x= abs[2] << Copy Axis Settings;
abs[2::N Items(abs)::2] << Paste Axis Settings;
Yajing
Level II

Re: copy and paste the Y-axis settings to all the CDF plots

Hogi,

thank you also. i also have another question to jthi and you, i really apprieciate it if you can help answer. 

the question is : how can i make this script into a right-click command when i right-click the Y-axis each time. i think it would be more covenient to be used. Thanks

Yajing
Level II

Re: copy and paste the Y-axis settings to all the CDF plots

jthi,

Thank you very much, it works now.

may i ask one more question: how can i make this script into a right-click command when i right-click the Y-axis each time. i think it would be more covenient to be used. Thanks

 

jthi
Super User

Re: copy and paste the Y-axis settings to all the CDF plots

I don't think you can do that, but you could make a menu item or toolbar item to make it slightly easier to use.

-Jarmo
Yajing
Level II

Re: copy and paste the Y-axis settings to all the CDF plots

actually, i already done that with the way. 

Recommended Articles