Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
Françoise
Level IV

image in a background of a graphbuilder

hi,

 

is it possible to put an image in the background of a graph?

Let me explain: I have a graph with histograms representing a % of failures for a process;

I would like to overlay with an image of a process screen. I will size the graph so that the histograms are well placed on the image.

 

thanks  fro your answers.

 

all the best

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted

Re: image in a background of a graphbuilder

Try something like this:

 

Names Default To Here(1);
dt = Open("$SAMPLE_DATA\Cities.jmp");
gb = dt << Graph Builder( Variables( X( :POP ) ), Elements( Histogram( X, Legend( 3 ) ) ) );
frame = (gb << report)[FrameBox( 1 )];
frame << Add Image( Open("$SAMPLE_IMAGES/black rhino footprint.jpg", jpg), bounds(left(0), top(30),bottom(0),right(9000)));

View solution in original post

Highlighted

Re: image in a background of a graphbuilder

For most fills in graph builder, you can right click on the legend and select Transparency...

 

For example:

Open("$SAMPLE_DATA\Big Class.jmp");
Graph Builder(
    Variables( X( :height ) ),
    Elements( Histogram( X, Legend( 5 ) ) ),
    SendToReport(
        Dispatch(
            {},
            "400",
            ScaleBox,
            {Legend Model(
                5,
                Properties(
                    0,
                    {Fill Color( 5 ), Transparency( 0.5 )},
                    Item ID( "height", 1 )
                )
            )}
        )
    )
);

View solution in original post

5 REPLIES 5
Highlighted

Re: image in a background of a graphbuilder

Try something like this:

 

Names Default To Here(1);
dt = Open("$SAMPLE_DATA\Cities.jmp");
gb = dt << Graph Builder( Variables( X( :POP ) ), Elements( Histogram( X, Legend( 3 ) ) ) );
frame = (gb << report)[FrameBox( 1 )];
frame << Add Image( Open("$SAMPLE_IMAGES/black rhino footprint.jpg", jpg), bounds(left(0), top(30),bottom(0),right(9000)));

View solution in original post

Highlighted
Françoise
Level IV

Re: image in a background of a graphbuilder

hi,

 

thanks for your answer.

Is it possible to have colors of the JMP graph with transparency?

 

all the best

Highlighted

Re: image in a background of a graphbuilder

For most fills in graph builder, you can right click on the legend and select Transparency...

 

For example:

Open("$SAMPLE_DATA\Big Class.jmp");
Graph Builder(
    Variables( X( :height ) ),
    Elements( Histogram( X, Legend( 5 ) ) ),
    SendToReport(
        Dispatch(
            {},
            "400",
            ScaleBox,
            {Legend Model(
                5,
                Properties(
                    0,
                    {Fill Color( 5 ), Transparency( 0.5 )},
                    Item ID( "height", 1 )
                )
            )}
        )
    )
);

View solution in original post

Highlighted
Jeff_Perkinson
Community Manager Community Manager

Re: image in a background of a graphbuilder

You can set the transparency of the markers in almost any graph in JMP, including Graph Builder, with a right click and choose Transparency...

 

In this example, I've already set the transparency to .25.

 

2020-07-24_10-56-13.507.png

-Jeff
Highlighted
Françoise
Level IV

Re: image in a background of a graphbuilder

Hi,

 

thanks

 

best regards

Article Labels