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 #37551 is a reply to message #37549] Fri, 02 January 2004 11:00 Go to previous messageGo to previous message
Bruce Bowler is currently offline  Bruce Bowler
Messages: 128
Registered: September 1998
Senior Member
On Fri, 02 Jan 2004 11:29:09 -0700, David Fanning put fingers to keyboard
and said:

> 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]
>
>

Which works (even if entirely less than IOTTMCO {intuitivly obvious to the
most casual observer}), but gets inordinately complex if the plot in
question is part of a multiplot.

I maintain (and always will, just because that's the way I am :-) that
what IDL does now is "wrong". It, and it alone, knows how it is going to
render what I ask it to render. It must be able to position the data so
that all of what I ask it to render is rendered...

>> 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]]

Works like a champ...

--
+-------------------+--------------------------------------- ------------+
Bruce Bowler | Sex is the worst reason to marry or divorce. - Dr.
1.207.633.9600 | Albert Ellis
bbowler@bigelow.org |
+-------------------+--------------------------------------- ------------+
[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:48 PST 2025

Total time taken to generate the page: 0.00280 seconds