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

Home » Public Forums » archive » ticks/tickv/tickname bug?
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
ticks/tickv/tickname bug? [message #2520] Mon, 01 August 1994 12:47
ljg is currently offline  ljg
Messages: 5
Registered: January 1993
Junior Member
; I'm having trouble with our current version of IDL:
; IDL. Version 3.6.1a (sunos sparc).
; Copyright 1989-1994, Research Systems, Inc.
; All rights reserved. Unauthorized reproduction prohibited.
; Installation number: 5344-1.
; Licensed for use by: UNIVERSITY OF IOWA, SPACE PHYSICS GROUP
;
; I'm trying to label an image with tick marks at "nice" values of the
; x axis whose dimension is time. The following minimal example code
; illustrates the problem:

trange = [0., 12. * 3600.] ; 12-hour plot, x is offset in seconds
xticks = 5 ; time intervals between major ticks
xtickv = findgen(6) * 2.0 * 3600.0 ; major tick every 2 hours
xtickv = xtickv + 1800.0 ; plot begins at 11:30, first tick at 12:00
xtickname = ['12','14','16','18','20','22'] ; hour of day
xminor = 4 ; minor tick every half hour
plot, trange, [0, 1], xstyle = 1, xticks = xticks, $
xtickv = xtickv, xtickname = xtickname, xminor = xminor

; The 12-hour plot is labelled as if it were 10 hours and
; the first major tick and label is placed at data value 0.0
; instead of at xtickv(0) which is 1800.0.
; I want labels for data ranging from 11:30 to 23:30, but get
; labels indicating 12:00 to 22:00.
;
; Thanks for any help.
;
; larry-granroth@uiowa.edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: [Q] illegel character?
Next Topic: array addressing

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

Current Time: Fri Oct 10 10:29:47 PDT 2025

Total time taken to generate the page: 0.31853 seconds