cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • 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.

Discussions

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

[Graph builder] Batch pin the hover label for selected rows

Dear all,

Currently I use JMP16 to create a graph.

I have a col with picture in it, and I want to pin the picture for each dot I selected so I turn on the "add label" of this col.

But I find that I can only by hover my pointer on the dot, and wait the hover label shown itself, and then click the pin button to pin it one by one,

is there any faster way to achieve this like jsl code?  I have million of rows need to show out the pics.

thanks!

22 REPLIES 22
jthi
Super User

Re: [Graph builder] Batch pin the hover label for selected rows

You can use XPath to look for selected attribute (with true value)

Names Default To Here(1);
//This message applies to all display box objects
dt = Open("$SAMPLE_DATA/Big Class.jmp");
biv = dt << Run Script("Bivariate");
Report(biv)[FrameBox(1)] << Select(1);

report(biv) << XPath("//FrameBox[@selected='true']");
-Jarmo
Clanlope
Level III

Re: [Graph builder] Batch pin the hover label for selected rows

Thanks! I actually need to get the frame under the mouse cursor (either hovered or clicked). I considered using S + Click for selection, but is there a simpler way to do this?

jthi
Super User

Re: [Graph builder] Batch pin the hover label for selected rows

Doing those is much more difficult in JMP as there is not easy access to the cursor location (in most of the cases) and even if you did, you would still have to calculate which frame happens to be under the coordinates. You can get the click but you have to first add graphic script to each of the frame boxes (graphic scripts trigger on mouse click/hovering over points/holding and dragging/...). Depending on what your script is supposed to do, there might be other options, for example you could provide user list of frameboxes, let them select which to add graphic script to and then prompt user to press OK.

-Jarmo

Recommended Articles