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

Home » Public Forums » archive » Re: Plotting weridness with ytickname
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Plotting weridness with ytickname [message #8386] Fri, 28 February 1997 00:00
Kevin Ivory is currently offline  Kevin Ivory
Messages: 71
Registered: January 1997
Member
David Kennedy wrote:

> Hi, I have this (simple) code to produce a stacked plot of
> some spectra:
> ; Set up the parameters for the plot command
> xrange = [-130, 130] ; Set by hand
> yrange = [-43, 20] ; Set by hand
> tick_values = [-40, -30, -20, -10, 0, 10, 20]
> tick_labels = [0, 10, 0, 10, 0, 10, 20]
>
> ; Plot empty frame with fiddled yaxis labelling etc
> plot, xrange, yrange, xstyle=1, ystyle=1, $
> ytickv=tick_values, ytickname=tick_labels, $
> /nodata
>
> Question - why is that when I run this code for the first time it produces
> a yaxis which is still labelled from -42 to 20? Running the same
> thing again will produce the correct labelling [0,10,0,10,0,10,20]
> though. WHY?

You might be using the buggy 4.0 IDL version: I opened a new IDL
session, pasted your code into it and got exactly what you
expected. I use IDL Version 4.0.1 (OSF alpha).

From the 4.0 -> 4.0.1 bug-fix list:
PLOT: XTICKNAME keyword does not work correctly in some instances.

Hope this helps
Kevin
--
Kevin Ivory Tel: +49 5556 979 434
Max-Planck-Institut fuer Aeronomie Fax: +49 5556 979 240
Postfach 20 mailto:kivory2@gwdg.de
D-37189 Katlenburg-Lindau, GERMANY http://www.gwdg.de/~kivory2/
Re: Plotting weridness with ytickname [message #8387 is a reply to message #8386] Fri, 28 February 1997 00:00 Go to previous message
D.Kennedy is currently offline  D.Kennedy
Messages: 26
Registered: January 1997
Junior Member
Thanks to those of you who replied by email.
Sticking '' around each ytickname element fixed
the problem. Why it happened at all is another
puzzle though!

--
David Kennedy, Dept. of Pure & Applied Physics, Queen's University of Belfast
Email: D.Kennedy@Queens-Belfast.ac.uk | URL: http://star.pst.qub.ac.uk/~dcjk/
Hi! I'm a .signature virus! Copy me into yours and join the fun!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Greek letter and subscript in PVwave
Next Topic: reading files with long names on win95 and idl4.0.1

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

Current Time: Wed Oct 08 15:36:55 PDT 2025

Total time taken to generate the page: 0.00498 seconds