X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 15 Jul 2005 11:19 AM by  anon
Issue with [x,y,z]tickunits
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
15 Jul 2005 11:19 AM
    All, has anyone else every played with this plot option? THe issue is that idl just locks up (with 100% of the cpu) on every machine I have tried this on. it will work with ytickunits='time' but with it set to hours nothing ever happens. ANyone know anything? Cheers, Brian I will post an example to try here and see if we can figure out what is going on: (cut and paste this - here down) ; set up an array with julian dates jd= [ 2451735.5870486116036773, $ 2451735.5941319451667368, $ 2451735.6012152782641351, $ 2451735.6082986118271947, $ 2451735.6153819449245930, $ 2451735.6295717596076429, $ 2451735.6366666671819985, $ 2451735.6437500007450581, $ 2451735.6508564818650484, $ 2451735.6579398154281080, $ 2451735.6650347225368023, $ 2451735.6721412041224539, $ 2451735.6792361116968095, $ 2451735.6863310192711651, $ 2451735.6934259263798594, $ 2451735.7005208339542150, $ 2451735.7076157410629094, $ 2451735.7147222226485610, $ 2451735.7218171302229166, $ 2451735.7289120377972722, $ 2451735.7360069449059665, $ 2451735.7431134264916182, $ 2451735.7502083340659738, $ 2451735.7573032411746681, $ 2451735.7644097227603197, $ 2451735.7715046303346753, $ 2451735.7785995374433696, $ 2451735.7856944450177252, $ 2451735.7928009266033769, $ 2451735.7998958337120712, $ 2451735.8069907412864268, $ 2451735.8140856488607824, $ 2451735.8211921299807727, $ 2451735.8282870375551283, $ 2451735.8353935191407800, $ 2451735.8424884262494743, $ 2451735.8495833338238299, $ 2451735.8566782413981855, $ 2451735.8637847229838371, $ 2451735.8708796300925314, $ 2451735.8779745376668870, $ 2451735.8850810192525387, $ 2451735.8921759263612330, $ 2451735.8992708339355886, $ 2451735.9063773155212402, $ 2451736.1893055560067296, $ 2451736.1963888895697892, $ 2451736.2034722226671875, $ 2451736.2105671302415431, $ 2451736.2176620373502374, $ 2451736.2247453709132969, $ 2451736.2318402784876525, $ 2451736.2389351855963469, $ 2451736.2460300931707025, $ 2451736.2531250007450581, $ 2451736.2602199078537524, $ 2451736.2673148154281080, $ 2451736.2744097225368023, $ 2451736.2815162041224539, $ 2451736.2886111116968095, $ 2451736.2957060192711651, $ 2451736.3028009263798594, $ 2451736.3098958339542150, $ 2451736.3169907410629094, $ 2451736.3240972226485610, $ 2451736.3311921302229166, $ 2451736.3382870377972722, $ 2451736.3453819449059665, $ 2451736.3524884264916182 ] ; set up and array with some data data = findgen(69) ; plot them together window, 0 plot, data, jd, /ynozero, yrange=[jd[n_elements(jd)-1], jd[0]] ; this of course works window, 1 ; and this will work too plot, data, jd, /ynozero, yrange=[jd[n_elements(jd)-1], jd[0]], ytickunits='time' ; but looks bad, time used wring units, so try window, 2 plot, data, jd, /ynozero, yrange=[jd[n_elements(jd)-1], jd[0]], ytickunits='hours' ; and idl will hang forever

    Deleted User



    New Member


    Posts:
    New Member


    --
    15 Jul 2005 11:19 AM
    Hey again, interestingly enough if one uses more keywords then you can get this working...kinda So the problem lies when you add the yrange keyword Interesting... Brian (cut and paste the late posts data, and this code to see) ; use time label time_label = label_date(date_format='%H %I') window, 0 ; plot this plot, data, jd, ytickunits='Hours', ytickformat='label_date', /ynozero ; now I really want time to run down the y axis plot, data, jd, ytickunits='Hours', ytickformat='label_date', /ynozero, yrange=[jd[69-1], jd[0]] ; and this breaks
    You are not authorized to post a reply.