Hide x-axis and y-axis number labelHello JMP community,
I am preparing my talk on the upcoming discovery summit.
Because of confidentiality reasons I cannot show the y and x-axis labels.
See pic, where I removed the axis box via the properties visibility option.


Normalizing all the data to range 0 to 1 changes all the analyses I did with scripts.
So as I see it, I need to keep the original (confidential) numbers but need to hide the Axis Box.
Can anybody assist me with a better idea than doing it manually in the properties or something totally different approach how to avoid showing confidential data?
Ideally there would be something like a column properties which suppresses the number showing on the axises in all analyses.
Appreciate a hint for an easier way to do this!
Thanks!
Ben
Automation and ScriptingConsumer and Market ResearchWindowsRe: Hide x-axis and y-axis number labelHi @ron_horne ,
I was initially rather generally speaking - while I wanted to prepare the screenshots, I found out this is a bug which is already under construction and will be solved.
The correct way is, the boxes (that you have outlined by a box in your screenshot) are ticked as default. If you uncheck them and restart JMP, the graph builder will not show the axes.
Best
Florian
Re: Hide x-axis and y-axis number labelHi @Florian_Vogt
i did restart, could you show me a picture of with and without these boxes checked?
so i know what to look for.
Re: Hide x-axis and y-axis number labelHi @ron_horne ,
have you restarted JMP after changing the preference?
Re: Hide x-axis and y-axis number label@txnelson @ian_jmp : Thanks a lot.
Actually a mixture of both of your answers did the thing, I needed at this point.
Names Default To Here( 1 );
i= 1;
While( Window( i ) << get window title != {},
Try( (Window( i ) << xpath( "//AxisBox" )) << Show Major Labels( 0 ) );
i++;
)
For removing all the axis items of a profiler axis (except the title), I extended the script with this
Names Default To Here( 1 );
i = 1;
While( Window( i ) << get window title != {},
Try( (Window( i ) << xpath( "//TextBox" )) << visibility( hidden ) );
i++;
);
i= 1;
While( Window( i ) << get window title != {},
Try( (Window( i ) << xpath( "//AxisBox" )) << Show Major Labels( 0 ) );
i++;
);
i= 1;
While( Window( i ) << get window title != {},
Try( (Window( i ) << xpath( "//NumberEditBox" )) << visibility( hidden ) );
i++;
);
One has to be cautious, since e.g. xpath( "//TextBox" )) then attributes the visibility to all TextBoxes.
This removes other things one probably does not want to remove!
@Florian_Vogt @Emmanuel_Romeu : Since we discussed this, possible interesting to know this work around!
Re: Hide x-axis and y-axis number label@ron_horne I could not see a difference having it ticked or not in the graphbuilder...
Re: Hide x-axis and y-axis number labelDepending on exactly what's needed, you can just suppress the numbers that appear on the axes too:
</CODE></PRE></LINGO-BODY><LINGO-SUB id="lingo-sub-438777" slang="en-US" mode="NONE">Re: Hide x-axis and y-axis number label</LINGO-SUB><LINGO-BODY id="lingo-body-438777" slang="en-US" mode="NONE"><P>Hi <A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26723" target="_blank">@Benjamin_Fuerst</A> ,</P>
<P>I think <A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687" target="_blank">@txnelson</A> gave a good solution.</P>
<P>I was expecting to have this ability in the preferences but i didn't manage to see any difference with or without these options selected. Can anyone demonstrate the difference?</P>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ron_horne_1-1637578645412.png" style="width: 400px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="ron_horne_1-1637578645412.png" style="width: 400px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="ron_horne_1-1637578645412.png" style="width: 400px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="ron_horne_1-1637578645412.png" style="width: 400px;"><span class="lia-inline-image-display-wrapper" image-alt="ron_horne_1-1637578645412.png" style="width: 400px;"><img src="https://us.v-cdn.net/6038925/uploads/images/37736i6AA836E7E90BD8B6/ron_horne_1-1637578645412.png" role="button" title="ron_horne_1-1637578645412.png" alt="ron_horne_1-1637578645412.png" /></span></SPAN></SPAN></SPAN></SPAN></P>
<P> </P>
<P> </P></LINGO-BODY><LINGO-SUB id="lingo-sub-438753" slang="en-US" mode="NONE">Re: Hide x-axis and y-axis number label</LINGO-SUB><LINGO-BODY id="lingo-body-438753" slang="en-US" mode="NONE"><P>Here is a simple script that will hide the axis values for all windows in your session. To make the axis values visible, change "hidden" to "visible" and rerun the script.</P>
<PRE><CODE class=" language-jsl">Names Default To Here( 1 );
i = 1;
While( Window( i ) << get window title != {},
Try( (Window( i ) << xpath( "//AxisBox" )) << visibility( hidden ) );
i++;
);NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
biv = dt << Bivariate(X(:height), Y(:weight));
Wait(2);
bivRep = Report(biv);
abs = bivRep << Xpath("//AxisBox");
abs << Show Major Labels( 0 );
Re: Hide x-axis and y-axis number labelHI Jim,
Thanks for sharing this with the community, I found it very useful!
Can you please help tell me how to modify the code so it only hides the values on the Y-axis ?
Thanks!
ML