J'essaie d'écrire un script qui modifiera la police sur un rapport de création de graphiques. mon code est ci-dessous. Lorsque j'ai le rapport graphique que je souhaite ouvrir, j'ouvre l'éditeur de script, j'exécute le script mais rien ne se passe. Nouveau dans l'écriture/exécution de scripts JSL, en travaillant avec JMP15. S'il existe un moyen d'enregistrer une macro pour ce faire, faites-le-moi également savoir. Merci d'avance 
// 1. Change the font of the x-axis on an open graph to bold size 12
Graph Builder(
Show Control Panel( 0 ),
Variables( X( :Column1 ), Y( :Column2 ) ),
Elements( Points( X, Y, Legend( 1 ) ) ),
SendToReport( Dispatch( {}, "Column1", ScaleBox, {Font Size( 12 ), Bold( 1 )} ) )
);
// 2. Change the font of any of the multiple y-axes on an open graph to bold size 12
Graph Builder(
Show Control Panel( 0 ),
Variables( X( :Column1 ), Y( :Column2, :Column3 ) ),
Elements( Points( X, Y, Legend( 1 ) ) ),
SendToReport(
Dispatch( {}, "Column2", ScaleBox, {Font Size( 12 ), Bold( 1 )} ),
Dispatch( {}, "Column3", ScaleBox, {Font Size( 12 ), Bold( 1 )} )
)
);
// 3. Change the font of x-axis title, y-axis titles, and the graph title to bold size 14
Graph Builder(
Show Control Panel( 0 ),
Variables( X( :Column1 ), Y( :Column2 ) ),
Elements( Points( X, Y, Legend( 1 ) ) ),
SendToReport(
Dispatch( {}, "Column1", ScaleBox, {Font Size( 14 ), Bold( 1 )} ),
Dispatch( {}, "Column2", ScaleBox, {Font Size( 14 ), Bold( 1 )} ),
Dispatch( {}, "Graph Title", TextEditBox, {Font Size( 14 ), Bold( 1 )} )
)
);
La syntaxe de l'élément est incorrecte. Essayez cette syntaxe
Graph Builder(
Show Control Panel( 0 ),
Variables( X( :Column1 ), Y( :Column2 ) ),
Elements( Points( X, Y, Legend( 1 ) ) ),
SendToReport(
Dispatch(
{},
"Column1",
ScaleBox,
{Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )}
)
)
);
Veuillez également utiliser l'icône JSL en haut de la fenêtre d'aperçu lorsque vous saisissez JSL. Il permet au lecteur d'étudier plus facilement le JSL
Merci pour votre réponse. Cependant, je ne comprends pas la correction. Est-ce uniquement pour cette section du code ou est-ce que cela s'applique à l'ensemble ? J'ai essayé de l'exécuter et toujours rien ne se passe.
Pour chaque endroit de votre code où la taille et le style de police sont définis, modifiez pour utiliser la structure que j'ai montrée.