Ciao a tutti,
Come posso rimuovere gli spazi bianchi nelle mie etichette di trama? Sto usando questa funzione per tracciare
varplot3 = Function( { y_param },
var = Variability Chart(
Y( column( y_param ) ),
X( evallist( varlist2 ) ),
Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
Mean Diamonds( 0 ), Points Jittered( 0 ), Connect Cell Means( 1 ),
Show Box Plots( 0 ), Std Dev Chart( 0 ) );
rvar = var << Report;
rvar[Axisbox( 1 )] << Show Major Grid( 1 );
rvar[Framebox( 1 )] << {Marker Size( 4 )};
rvar[Framebox( 1 )] << Frame Size(700, 300);
rvar[TextEditBox( 1 )] << Set Font Size( 10 ) << Set Font Style( "Bold" );
rvar[NomAxisBox( 4 )] << {Rotated Tick Labels( 0 )};
rvar[Framebox( 1 )] << Row Legend( Column( buildname ), Color( 1 ), Marker( 0 ), Color Theme("JMP Default"), Continuous Scale( 0 ) );
rvar[Framebox( 1 )] << Row Legend( Column( ht ), Color( 0 ), Marker( 1 ), Marker Theme("Paired") );
g = nitems(varlist2)+2;
Try(rvar[BorderBox(g+1)] << Delete);
Try(rvar[BorderBox(g)] << Delete);
pvar = rvar[Outlinebox( 2 )] << get picture;
);Ho anche allegato l'output di esempio che ha spazi bianchi nell'etichetta. Come rimuovere gli spazi bianchi? I PL aiutano
Prova questo. Crea il grafico, quindi fai clic con il pulsante destro del mouse sull'asse per visualizzare "Impostazioni asse ...". Quindi seleziona "Divisore breve":

Se questo è ciò che stai cercando, salva lo script e ruba il codice extra che ti serve. Vedrai qualcosa come:
Dispatch(
{"Variability Chart for NPN1"},
"1",
ScaleBox,
{Label Row( 1, Tick Mark Style( "Short Divider" ) )}
)