cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • 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.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

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

Bug in graph builder with grid lines and right side axes?

I think I found a bug (in JMP 12.1). Please try this script:

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

gb = dt << Graph Builder(

    Size( 570, 667 ),

    Show Control Panel( 0 ),

    Variables(

        X( :age ),

        Y( :height ),

        Y( :weight, Position( 1 ), Side( "Right" ) ),

        Y( :age ),

        Y( :name )

    ),

    Elements(

        Position( 1, 1 ),

        Points( X, Y( 1 ), Legend( 5 ) ),

        Smoother( X, Y( 1 ), Legend( 6 ) ),

        Points( X, Y( 2 ), Legend( 7 ) ),

        Smoother( X, Y( 2 ), Legend( 8 ) )

    ),

    Elements( Position( 1, 2 ), Points( X, Y, Legend( 10 ) ) ),

    Elements( Position( 1, 3 ), Points( X, Y, Legend( 11 ) ) ),

    SendToReport(

        Dispatch(

            {},

            "height",

            ScaleBox,

            {Label Row( {Show Major Grid( 0 ), Show Minor Grid( 0 )} )}

        ),

        Dispatch(

            {},

            "weight",

            ScaleBox,

            {Label Row( {Show Major Grid( 1 ), Show Minor Grid( 1 )} )}

        )

    ),

    SendToReport(

        Dispatch( {}, "age", ScaleBox( 2 ), {Label Row( Show Major Grid( 0 ) )} ),

        Dispatch( {}, "name", ScaleBox, {Label Row( Show Major Grid( 0 ) )} )

    )

);

If the checkboxes "Major Grid Lines" and "Minor Grid Lines" are NOT checked in Preferences (Styles -> Tick Marks and Grid Lines) the graph looks ok. But if they are checked you will get the grid lines from "weight" for the parameters "age" and "name". These grid lines disappear when you move "weight" to the left. Very strange.

Can anybody explain what is happening here or is it just a bug?

1 REPLY 1
cis_pete
Level III

Re: Bug in graph builder with grid lines and right side axes?

PS: You even get the grid lines for "age" and "name" if the grid lines for "weight" are turned off:

    Dispatch(
        {},
        "weight",
        ScaleBox,
        {Label Row( {Show Major Grid( 0 ), Show Minor Grid( 0 )} )}
    )

Recommended Articles