¡Hola!
Actualmente estoy intentando cambiar los colores de la línea del eje en Graph Builder en JMP versión 17. Básicamente, me gustaría cambiar las líneas de los ejes Y y X a negro y las líneas del eje del Grupo X a rojo.
He conseguido que los ejes Y y X sean negros al hacer que el marco del gráfico sea negro, pero no quiero que las líneas superiores y derechas más externas también sean negras. Parece que tampoco puedo encontrar la configuración del eje del Grupo X, a pesar de hacer clic con el botón derecho en él.
He adjuntado una especie de maqueta de líneas que agregué después del hecho en PowerPoint con flechas que indican los ejes a los que me refiero.
Cualquier ayuda sería muy apreciada.

¡Gracias de antemano!
Aquí hay una manera, pero podría haber mejores maneras.
- Las líneas rojas entre grupos se pueden agregar como líneas de referencia en la configuración del eje X. Encontré el número 1.485 con un poco de experimentación. Creo que 1,5 habría sido el borde natural, pero en ese momento la línea no apareció, por lo que está apenas por debajo del borde. Es posible que deba ajustar esto con un número diferente de categorías.
- Usé la herramienta de línea para dibujar la línea negra en el eje Y, luego hice un poco de trampa al enviar el gráfico a la ventana del script y asegurarme de que las coordenadas x, y estuvieran bien alineadas.
Aquí hay un script para recrear lo que hice.
/*JMP STATISTICAL DISCOVERY LLC (“JMP”) PERMITS THE USE OF THIS COMPUTER SOFTWARE CODE (“CODE”) ON AN AS-IS BASIS AND AUTHORIZES YOU TO USE THE CODE SUBJECT TO THE TERMS LISTED HEREIN. BY USING THE CODE, YOU AGREE TO THESE TERMS. YOUR USE OF THE CODE IS AT YOUR OWN RISK. JMP MAKES NO REPRESENTATION OR WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRIGEMENT, AND TITLE, WITH RESPECT TO THE CODE.
You may use the Code solely as part of a software product you currently have licensed from JMP, JMP’s parent company SAS Institute Inc. (“SAS”), or one of JMP’s or SAS’s subsidiaries or authorized agents (the “Software”), and not for any other purpose. The Code is designed to add functionality to the Software but has not necessarily been tested. Accordingly, JMP makes no representation or warranty that the Code will operate error-free. JMP is under no obligation to maintain, support, or continue to distribute the Code.
Neither JMP nor its licensors shall be liable to you or any third-party for any general, special, direct, indirect, consequential, incidental, or other damages whatsoever arising out of or related to your use or inability to use the Code, even if JMP has been advised of the possibility of such damages. Except as otherwise provided above, the Code is governed by the same agreement that governs the Software. If you do not have an existing agreement with JMP or SAS governing the Software, you may not use the Code.
JMP and all other JMP Statistical Discovery LLC product or service names are registered trademarks or trademarks of JMP Statistical Discovery LLC in the USA and other countries. ® indicates USA registration. Other brand and product names are registered trademarks or trademarks of their respective companies.
*/
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt << Graph Builder(
Size( 633, 672 ),
Show Control Panel( 0 ),
Variables( X( :sex ), Group X( :age ) ),
Elements( Bar( X, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"sex",
ScaleBox,
{Add Ref Line( 1.485, "Solid", "Red", "", 1 ),
Label Row( Tick Mark Style( "Automatic" ) )}
),
Dispatch(
{},
"Graph Builder",
FrameBox,
Add Line Annotation( Line( {1, 0}, {1, 565} ), Color( "Black" ) )
)
)
);
Hola Jed,
Muchas gracias por la ayuda. ¡Las líneas de referencia funcionaron perfectamente! También encontré en la ventana de Preferencias para gráficos si configuré el color del marco como negro, pero apagué el marco del gráfico (desmarqué la casilla), eso hizo que los ejes y y x solo fueran negros (no intuitivo, pero funcionó).
¡Salud!
Opción JSL para el color del área GroupX: Color de cuadrícula().
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt << Graph Builder(
Show Control Panel( 0 ),
Grid Color( "Red" ),
Graph Spacing( 4 ),
Variables( X( :sex ), Group X( :age ) ),
Elements( Bar( X, Legend( 6 ) ) )
)
