cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Have your say in shaping JMP's future by participating in the new JMP Wish List Prioritization Survey
Choose Language Hide Translation Bar
Françoise
Level V

image in a label

Hi,

 

I have a database JMP. There are 2 columns "expression" with image (JPG) inside and labelled.

 

I thought that JMP will show the 2 images in the label of a point but there is only one.

 

is it possible to have more than 1 image in a label?

 

 

best regards

 

 

3 ACCEPTED SOLUTIONS

Accepted Solutions
jthi
Super User

Re: image in a label

I usually either create new column which combines them into single image and use that or hover labels. Below is hover label example (it does require some scripting)

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

gb = dt << Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight)),
	Elements(Points(X, Y, Legend(6)))
);

frame = (gb << report)[FrameBox(1)];
frame << Set Graphlet(
	Picture(
		hlb = H List Box(Picture Box(:picture[local:_firstRow]), Picture Box(:pet[local:_firstRow]))
	)
);

jthi_0-1717168976134.png

 

Nowadays there might be some easier options but these are the ones I'm used to

-Jarmo

View solution in original post

txnelson
Super User

Re: image in a label

I am not aware of a way to do this in JMP directly.  However, you can create a new column that has both images joined together and then use that as your label column.

Here is a simple example:

txnelson_0-1717169631584.png

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
dt << New Column( "together", expression );
For( i = 1, i <= N Rows( dt ), i++,
	hlb = H List Box( dt:picture[i], dt:pet[i] );
	dt:together[i] = hlb << get picture;
);
dt:picture << label( 0 );
dt:pet << label( 0 );
dt:together << label( 1 );
Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) )
);
Jim

View solution in original post

hogi
Level XI

Re: image in a label

If you have Jmp16 or above, you can use Hover Label / Label Viewer to enable Graph builder to show more than a single picture as label:

hogi_0-1717177907017.png

 

hogi_1-1717178017790.png

 

View solution in original post

4 REPLIES 4
jthi
Super User

Re: image in a label

I usually either create new column which combines them into single image and use that or hover labels. Below is hover label example (it does require some scripting)

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

gb = dt << Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight)),
	Elements(Points(X, Y, Legend(6)))
);

frame = (gb << report)[FrameBox(1)];
frame << Set Graphlet(
	Picture(
		hlb = H List Box(Picture Box(:picture[local:_firstRow]), Picture Box(:pet[local:_firstRow]))
	)
);

jthi_0-1717168976134.png

 

Nowadays there might be some easier options but these are the ones I'm used to

-Jarmo
txnelson
Super User

Re: image in a label

I am not aware of a way to do this in JMP directly.  However, you can create a new column that has both images joined together and then use that as your label column.

Here is a simple example:

txnelson_0-1717169631584.png

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
dt << New Column( "together", expression );
For( i = 1, i <= N Rows( dt ), i++,
	hlb = H List Box( dt:picture[i], dt:pet[i] );
	dt:together[i] = hlb << get picture;
);
dt:picture << label( 0 );
dt:pet << label( 0 );
dt:together << label( 1 );
Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) )
);
Jim
hogi
Level XI

Re: image in a label

If you have Jmp16 or above, you can use Hover Label / Label Viewer to enable Graph builder to show more than a single picture as label:

hogi_0-1717177907017.png

 

hogi_1-1717178017790.png

 

Françoise
Level V

Re: image in a label

Hi,

 

thanks for all answers.

 

I use the solution of Jim. Its OK.

 

Best regards