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
Konstantinl
Level II

Preset for axis labels/descriptions font color

Hi there!

we have branding requirements in our organization and they got updated to also cover the colors for axis lines/axis names/axis labels/legends.

This is where i ran into a bit of a problem. For the standard settings you can access from Preferences i already have an add-in in place, that gives people the graph color schemes, the font sizes and now also the axis line colors. I managed to change some stuff through the GraphBuilder platform preferences as well (Title/Level/Page), but this is not all.

 

From the logic of it all (if i understand it correctly), the font color for the legend box, the axis labels and the axis names can be changed in the platforms only. Ideally i want this applied across all platforms, not just GB.

Also, i tried setting this up in a graph in the proper way (grey font instead of black) and saving the preset. However, if i add more axes (second Y axis, a "page" variable etc.), i see that the setting applies to the first axis only and does not translate. I specifically do not want to link axes, which is an option in the platform preference. The preset also saves the graph type, which i do not want.

 

Ideally, i want this to be as easy as setting up the color sheme via the "set preferences()" script, that needs no more fiddling from the users (without having to target specific report boxes).

Can anybody think of a way to keep the preset general enough to apply to all types of graphs? Or some other solution?

 

basically, i want the colors to stay grey, if users change anything (this just as an ugly example):

Konstantinl_0-1784286310655.png

 

 

 

Cheers,

Konstantin

 

1 ACCEPTED SOLUTION

Accepted Solutions
Konstantinl
Level II

Re: Preset for axis labels/descriptions font color

Hi Jarmo,

so this tied to a toolbar button seems to be enough:

Konstantinl_1-1784545431160.png

Names Default To Here( 1 );
try(
rep = Current Report();
abs = rep << XPath( "//FrameBox" );
abs << Text Color( {202, 206, 208} );
mm= rep << XPath( "//AxisBox" );
mm<< Text Color( {96, 107, 113} );
pp = rep << XPath( "//TextEditBox" );
pp << Text Color( {96, 107, 113} );
bb = rep << XPath( "//OutlineBox" );
bb << Text Color( {96, 107, 113} );
rep[LegendBox( 1 )] << Text Color( {96, 107, 113} ));

Would anyone have any additional suggestions? Will mark this as solved otherwise :)

Seems to work for both graphbuilder and regular report windows, which makes me happy

Best wishes,

Konstantin

 

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Preset for axis labels/descriptions font color

I think easiest option might be to create add-in (with menu item/shortcut/toolbar) which user could run to reformat the reports. You can also try to tinker with the presets, but it will most likely require you to modify the PlatformPresets.jmppresets manually while figuring out which works and which doesn't. 

-Jarmo
Konstantinl
Level II

Re: Preset for axis labels/descriptions font color

Hi Jarmo,

so this tied to a toolbar button seems to be enough:

Konstantinl_1-1784545431160.png

Names Default To Here( 1 );
try(
rep = Current Report();
abs = rep << XPath( "//FrameBox" );
abs << Text Color( {202, 206, 208} );
mm= rep << XPath( "//AxisBox" );
mm<< Text Color( {96, 107, 113} );
pp = rep << XPath( "//TextEditBox" );
pp << Text Color( {96, 107, 113} );
bb = rep << XPath( "//OutlineBox" );
bb << Text Color( {96, 107, 113} );
rep[LegendBox( 1 )] << Text Color( {96, 107, 113} ));

Would anyone have any additional suggestions? Will mark this as solved otherwise :)

Seems to work for both graphbuilder and regular report windows, which makes me happy

Best wishes,

Konstantin

 

Recommended Articles