How to italicize single word in axis title/legend in Graph BuilderIs there any way to italicize just a single word in legends and axis titles in Graph Builder? When selecting fonts in Graph Builder, it allows you to change the font of the entire title or legend entry but not one specific word. Specifically, I need to change the word "Salmonella" to "Salmonella" without changing the font of the rest of the words to italics as well.
Ultimately, I'd like to see "Bev1 + Salmonella" and "Bev2 + Salmonella".
Of course I could copy the graph in word and paste over the title with the correct word and font, but that seems like a sloppy way to do it.
Any suggestions would be appreciated!
GraphicsRe: How to italicize single word in axis title/legend in Graph Builderits a little tricky, and you have to knock a decade or two of dust off your HTML skills.
Save the script of your figure, make sure you have edited the text that you want to change.
Then go in to the script and add good ol'e markup to italicize the text. Check the scripting index for MARKUP and to find examples.
//open Big Class.jmp and run this
obj=Graph Builder(
Size( 570, 490 ),
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ), Group X( :age ), Group Y( :sex ) ),
Elements( Points( X, Y, Legend( 2 ) ), Smoother( X, Y, Legend( 3 ) ) ),
SendToReport(
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "<I>italic</I> vs. normal" )}
)
)
);
go= report (obj) [texteditbox(1)]<<MARKUP></MARKUP>How to italicize single word in axis title/legend in Graph BuilderIs there any way to italicize just a single word in legends and axis titles in Graph Builder? When selecting fonts in Graph Builder, it allows you to change the font of the entire title or legend entry but not one specific word. Specifically, I need to change the word "Salmonella" to "Salmonella" without changing the font of the rest of the words to italics as well.
Ultimately, I'd like to see "Bev1 + Salmonella" and "Bev2 + Salmonella".
Of course I could copy the graph in word and paste over the title with the correct word and font, but that seems like a sloppy way to do it.
Any suggestions would be appreciated!
Mass Customization