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

Home » Public Forums » archive » Re: Why does IDL get this wrong?
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: Why does IDL get this wrong? [message #37552 is a reply to message #37551] Fri, 02 January 2004 10:29 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Bruce Bowler writes:

> x=[0,0,0,0,44.8,75.7,64.1,70.4,73.9,74.2,68.1,48.9,44.0,35.7 ,27.6,12.3,7.3,0]
> y=[-85,-75,-65,-55,-45,-35,-25,-15,-5,5,15,25,35,45,55,65,75 ,85]
> title='title'
> label='line1!Cline2'
> plot, x, y, yrange = [-90, 90], /ystyle, /xstyle, ytickformat = "(a1)",
> title = title, xtitle = label, xrange = [0, 100], ticklen = -0.03
>
> If ticklen is +0.03, all is fine, but setting it negative (to get the
> ticks outside the box) and the second line of the xtitle is lost.

Just give yourself some more room for the plot. Add a POSITION
keyword:

> plot, x, y, yrange = [-90, 90], /ystyle, /xstyle, ytickformat = "(a1)", $
> title = title, xtitle = label, xrange = [0, 100], ticklen = -0.03, $
POSITION=[0.1, 0.15, 0.9, 0.9]

> related question (in that involves plots), is there a way to draw the box
> around the plot (the boss likes that) but *not* draw the tickmarks on the
> non-primary lines of the box?

Plot, findgen(11), XStyle=8, YStyle=8 ; or 9 if you want exact ranges
Plots, [!X.CRange[1], !X.Crange[1]], [!Y.CRange[0], !Y.CRange[1]]
Plots, [!X.CRange[0], !X.Crange[1]], [!Y.CRange[1], !Y.CRange[1]]

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: XROI & Regions_out question
Next Topic: Installing IDL 6.0 on RedHat 9 - "Segmentation fault"

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

Current Time: Tue Dec 02 22:28:41 PST 2025

Total time taken to generate the page: 2.08596 seconds