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

Home » Public Forums » archive » Re: custom x axis
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: custom x axis [message #84046 is a reply to message #83907] Fri, 19 April 2013 16:22 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Just for fun, here's the same code, but with function graphics:

y1 = [8.6,6.0,3.95,0.2,0.2,0] ;monthly frequency values (high)
y2 =[5,2.8,0,0,0,0] ;monthly frequencies values (low)
y3= [9.92,3.04,0.21,0.08,0.04,0] ;monthly frequency values (other)
t = timegen(6, start=julday(9, 15, 2012), units='months') ;caldat=julday
void = label_date(date_format='%N')

p = plot(t,randomu(seed,6),yrange=[0,15], $
xtickformat='label_date',title='Cluster 1', $
xtitle='Months', ytitle='Frequency',/nodata)
p1=plot(t,y1,'*b',/over,sym_thick=2,name=' low years')
p2=plot(t,y2,'gtu',/over,sym_thick=2,name=' high years')
p3=plot(t,y3,'rs',/over,sym_thick=2,name=' other years')
leg = legend(position=[0.75,0.75])

-Chris
ExelisVIS
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plot and contour inconsistency
Next Topic: Subscripts with greek symbols

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

Current Time: Fri Oct 10 15:29:49 PDT 2025

Total time taken to generate the page: 2.07961 seconds