I have a table with two expression columns containing pictures. When I hover the mouse over the data points only one picture is displayed, despite both columns being labelled.
What is the easiest way to display both pictures at the same time? For instance, is it possible to combine the two pictures in a single expression column so that when this is labelled, both pictures get displayed?
I have tried to group the expression columns but still, only one picture gets displayed.
Within JMP you have the ability to play with pictures. Here is one possible way of creating what you need:
Names Default To Here( 1 ); dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" ); pic = dt:picture; pic2 = dt:picture; hlb = H List Box( pp = Picture Box( pic ), Picture Box( pic2 ) ); outpic = hlb << get picture; dt:picture = outpic;
That is very nice. Thank you!
Now, I should have mentioned that I have never ever written a JMP script before.
I can see from your example what the scritp is doing. Taking the pictures from position 1 and 2 and putting them together in position 3, in the same "picture" column.
I have tried to implement that in my table by changing where it says "picture" to "the name of my column column" but it doesn't do anything. What am I missing?
Also, I should mention that I have two columns with 180 pictures each and would like to combine them in a third new column to have a double picture. Is there a way to do that for all of them at the same time?
OK, it has been a "few weeks" and JMP 15.0 is finally out.
This means you can take advantage of new features such as graphlets that were designed to support customizations such as this.
Just RMB on the graph background, launch the Hover Label Editor and add the following script (based on @txnelson solution, thx!) in the Graphlet Picture tab:
dt = local:_dataTable; pic = dt:picture[local:_firstRow]; pic2Idx = If(local:_firstRow == NRows(), 1, local:_firstRow + 1); pic2 = dt:picture[pic2Idx]; hlb = H List Box( pp = Picture Box( pic ), Picture Box( pic2 ) ); hlb << get picture;
No need to add new columns. A graph with pinned tooltips would look like the following:
For more information on graphlets, check https://www.jmp.com/content/dam/jmp/documents/en/support/jmp15/using-jmp.pdf, page 512.
There are no labels assigned to this post.