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

Home » Public Forums » archive » Reversing y-axis using label_date
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Reversing y-axis using label_date [message #89721] Wed, 19 November 2014 23:13 Go to previous message
greer.katelynn is currently offline  greer.katelynn
Messages: 5
Registered: December 2008
Junior Member
I am attempting to create a Hovmoller plot of some atmospheric data. The problem is that I want time increasing downward. Usually to reverse the an axis, you just reverse the range in the plot call. Unfortunately, this is resulting in only one date to be plotted. The relevant code is as follows:

cgLoadCT,22,Ncolors=21,Bottom=1,/Brewer
dummy=label_date(DATE_FORMAT=['%D','%M'])
plot,[0,10],[juldates(1),juldates(2)],/nodata,$
xrange=[-180,180],yrange=[juldates(nt-1),juldates(0)],$
ytickunits=['Time','Time'],ytickinterval=2,$
ytickformat='Label_Date',xtitle='Longitude',$
xstyle=1,ystyle=1
contour,w,lon,juldates,$
levels=w_levels,c_colors=Indgen(21),/cell_fill,$
/overplot

Thanks,
Katelynn
[Message index]
 
Read Message
Read Message
Previous Topic: extrac subarrays
Next Topic: How to convert Julian date into Gregorian date format in IDL?

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

Current Time: Wed Oct 08 14:07:49 PDT 2025

Total time taken to generate the page: 0.00211 seconds