BookmarkSubscribe
Choose Language Hide Translation Bar
nvi
nvi
Community Trekker

Is it possible to combine two pictures in one expression column?

Hi,

 

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.

 

Thanks,

 

Nuria

0 Kudos
5 REPLIES 5
Highlighted
txnelson
Super User

Re: Is it possible to combine two pictures in one expression column?

Within JMP you have the ability to play with pictures.  Here is one possible way of creating what you need:twopic.PNG

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );

pic = dt:picture[1];
pic2 = dt:picture[2];
hlb = H List Box( pp = Picture Box( pic ), Picture Box( pic2 ) );

outpic = hlb << get picture;

dt:picture[3] = outpic;

 

Jim
Craige_Hales
Staff (Retired)

Re: Is it possible to combine two pictures in one expression column?

Nice!

Craige
0 Kudos
nvi
nvi
Community Trekker

Re: Is it possible to combine two pictures in one expression column?

Hello,

 

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?

 

Thanks,

 

Nuria

 

 

 

 

0 Kudos
txnelson
Super User

Re: Is it possible to combine two pictures in one expression column?

Can you upload a sample of the script you are using, and also a sample of the data table the images are in? That would be very helpful.
Jim
0 Kudos

Re: Is it possible to combine two pictures in one expression column?

This will make a nice graphlet in a few weeks... :)

0 Kudos