|
Re: How do I change the font of the title in a plot? [message #86030 is a reply to message #86029] |
Tue, 24 September 2013 16:23   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Vineel Yettella writes:
> IDL noob here. Is there any command in IDL which changes exclusively the title of a plot? All commands that I know change all the characters in the plot (including the x-axis and the y-axis labels).
You could probably do some limited things with embedded format codes:
IDL> cgplot, cgdemodata(1), XTitle='This is the X Title', $
YTitle='This is the Y Title', Title='!17This is the Real Title!X'
In PostScript, you could have Helvetica on the axes and the title in
Time Bold Italic like this:
PS_Start
cgplot, cgdemodata(1), XTitle='This is the X Title', Font=0, $
YTitle='This is the Y Title', Title='!8This is the Real Title!X'
PS_End, /PNG
You can see the result here:
http://www.idlcoyote.com/misc/fancy_title.png
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
|