cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • Use JMP Clinical with CDISC-compliant data. Review studies, ID safety and efficacy signals & communicate findings with interactive graphics. Register to see how. Aug. 27, 2 pm US ET.

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