CIAO!
Attualmente sto tentando di modificare i colori delle linee dell'asse in Graph Builder su JMP versione 17. Essenzialmente vorrei cambiare le linee degli assi Y e X in nere e le linee dell'asse del gruppo X in rosso.
Ho ottenuto che gli assi Y e X siano neri rendendo nera la cornice del grafico, ma poi non voglio che anche le linee destra e superiore più esterne siano nere. Inoltre, non riesco a trovare le impostazioni dell'asse del gruppo X, nonostante abbia fatto clic con il pulsante destro del mouse.
Ho allegato una sorta di mock-up di linee che ho aggiunto a posteriori su powerpoint con frecce che indicano gli assi intendo.
Qualsiasi aiuto sarebbe molto apprezzato.

Grazie in anticipo!
Ecco un modo, ma potrebbero esserci modi migliori.
- Le linee rosse tra i gruppi possono essere aggiunte come linee di riferimento nelle impostazioni dell'asse X. Ho trovato il numero 1.485 con un po' di sperimentazione. Penso che 1.5 sarebbe stato il confine naturale, ma a quel punto la linea non si vedeva, quindi questo è poco meno del confine. Potrebbe essere necessario modificarlo con un numero diverso di categorie.
- Ho usato lo strumento linea per disegnare la linea nera sull'asse Y, poi ho barato un po' inviando il grafico alla finestra dello script e assicurandomi che le coordinate x,y fossero allineate bene.
Ecco uno script per ricreare quello che ho fatto.
/*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" ) )
)
)
);
Ciao Jed,
Grazie mille per l'aiuto. Le linee di riferimento hanno funzionato perfettamente! Ho anche trovato nella finestra Preferenze per Grafici se ho impostato il colore della cornice come nero, ma ho disattivato la cornice del grafico (deselezionata la casella), che ha reso neri solo gli assi y e x (non intuitivo, ma ha funzionato).
Saluti!
Opzione JSL per il colore dell'area GroupX: Colore griglia().
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 ) ) )
)
