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

Home » Public Forums » archive » Re: Iplot x labeling
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: Iplot x labeling [message #54367 is a reply to message #54362] Fri, 01 June 2007 16:05 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Jun 1, 4:13 pm, "jochem.vere...@gmail.com"
<jochem.vere...@gmail.com> wrote:
> Hi IDL gurus,
>
> A simple question which is providing me headache.
>
> I have, say, x=[-6,-4,1,5,7]
> and y=[5,4,3,4,5]
>
> now I wish to plot x and y in IPLOT in such a way that on the x-axis
> only the x values are shown. Without any additional ticks. Hereby, the
> outer values should not be at the very end of the plot, but rather a
> bit inside.
>
> Somebody can help me out?
>
> greetzz, Joe

If I'm understanding you correctly,

iplot, x, y, xrange=[-6.5, 7.5]

will do the second part (putting the values "a bit inside"). I think
the XTICKVALUES keyword should have solved the first part (maybe with
adding the XMAJOR keyword), but I couldn't get the result I was
expecting from:

iplot, x, y, xtickvalues=x, xmajor=5, xrange=[-6.5, 7.5]

(as a matter of fact, XTICKVALUES didn't seem to ever have any
effect).

Mike
--
www.michaelgalloy.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Simple output question
Next Topic: Re: Simple output question

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

Current Time: Sat Oct 11 16:53:15 PDT 2025

Total time taken to generate the page: 0.48130 seconds