- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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]))
)
);
Nowadays there might be some easier options but these are the ones I'm used to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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:
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 ) ) )
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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]))
)
);
Nowadays there might be some easier options but these are the ones I'm used to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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:
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 ) ) )
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: image in a label
Hi,
thanks for all answers.
I use the solution of Jim. Its OK.
Best regards