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 #54357 is a reply to message #54354] Sun, 03 June 2007 06:29 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mgalloy@gmail.com writes:

> 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).

This works:

IDL> iplot, x, y, xtickvalues=x, xmajor=5, xrange=[-6.5, 7.5], $
xtickname=Strtrim(x,2)

Which leads me to wonder if this is a documentation problem, rather
than an iPlot problem. The solution has an "object graphics" flavor
to it that the technical writer might have missed.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[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 20:54:36 PDT 2025

Total time taken to generate the page: 1.28018 seconds