cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

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

Add Image Label to Graph

Hi,

Using JMP12 and an Expression column, how can I add an image label to a graph?  The mouse over image is great, but I am having trouble getting the image label to stay visible to add to a journal, presentation, etc.  Any suggestions?  Thanks!

Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt << New Column( "Image",

       Expression,

       Set

       Formula(

             New Image(

                    Open(

                         "https://upload.wikimedia.org/wikipedia/en/thumb/6/6e/JMPlogo.png/250px-JMPlogo.png",

                           "png"

                    )

             )

       )

);

dt << Set Label Columns( :name, :Image );

dt << Select Where( :name == "LAWRENCE" ) << Label( 1 ) << Clear Select;

dt << Bivariate( Y( :height ), X( :weight ) );

// :name label is visible in graph, :Image label is not.

1 ACCEPTED SOLUTION

Accepted Solutions
ms
Super User (Alumni) ms
Super User (Alumni)

Re: Add Image Label to Graph

You can pin the label. To do it by hand just mouse over the marker and place the pointer on top of the label box to reveal the pin.

The same thing can be done by sending <<Add Pin Annotation to the FrameBox, but the parameters can be tricky to get right.

I would first pin and position the label by hand and then copy the script. See the example below:

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt << New Column("Image", Expression, Formula(New Image(Open("$SAMPLE_IMAGES/pi.gif", gif))));

dt << Set Label Columns(:Image);

//dt << Select rows( label_row) << Label( 1 ) << Clear Select;

dt << Bivariate(

    Y(:weight),

    X(:height),

    SendToReport(

        Dispatch(

            {},

            "Bivar Plot",

            FrameBox,

            Add Pin Annotation(

                Seg(Marker Seg(1)),

                Index(39),

                Index Row(-1),

                Origin({70, 172}),

                Offset({30, 16}),

                Tag Line,

                Font("Helvetica", 11, "Plain")

            )

        )

    )

);

   

Current Report() << size window(475, 374);

View solution in original post

2 REPLIES 2
ms
Super User (Alumni) ms
Super User (Alumni)

Re: Add Image Label to Graph

You can pin the label. To do it by hand just mouse over the marker and place the pointer on top of the label box to reveal the pin.

The same thing can be done by sending <<Add Pin Annotation to the FrameBox, but the parameters can be tricky to get right.

I would first pin and position the label by hand and then copy the script. See the example below:

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt << New Column("Image", Expression, Formula(New Image(Open("$SAMPLE_IMAGES/pi.gif", gif))));

dt << Set Label Columns(:Image);

//dt << Select rows( label_row) << Label( 1 ) << Clear Select;

dt << Bivariate(

    Y(:weight),

    X(:height),

    SendToReport(

        Dispatch(

            {},

            "Bivar Plot",

            FrameBox,

            Add Pin Annotation(

                Seg(Marker Seg(1)),

                Index(39),

                Index Row(-1),

                Origin({70, 172}),

                Offset({30, 16}),

                Tag Line,

                Font("Helvetica", 11, "Plain")

            )

        )

    )

);

   

Current Report() << size window(475, 374);

robot
Level VI

Re: Add Image Label to Graph

Thanks MS!

Recommended Articles