comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » plot titles overflowing EPS bounding box
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Plot Title [message #42330 is a reply to message #12573] Tue, 01 February 2005 06:34 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
pulsifer@bigfoot.com writes:

> I am using Plot followed by 2 axis commands to surround my plot with
> axis with tick marks on all four sides.
>
> It works well until I add a title to the Plot command. The title is
> overwritten by one of the axis labels.
>
> I can't find any parameters that let me control the title placement.
> Is there some trick to doing this?

You will have to use XYOUTS to put the title on. Something like
this:

data = Findgen(11)
Plot, data, XStyle=8, YStyle=8, Position=[0.15, 0.15, 0.9, 0.85], $
XTitle='1st X Title', YTitle='1st Y Title'
Axis, YAxis=1, YRange=[0,10], /Save, YTitle='2nd Y Title'
Axis, XAxis=1, XRange=[0,15], /Save, XTitle='2nd X Title'
x = (!X.Window[1] - !X.Window[0]) / 2. + !X.Window[0]
y = 0.92
XYOuts, x, y, 'This is plot title', /Normal, Align=0.5, Charsize=1.5

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: NULL value in IDL ?
Next Topic: Re: Color behavior when using TEXTURE MAP

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 13:37:29 PDT 2025

Total time taken to generate the page: 1.28029 seconds