cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

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