Hi David,
Thanks for the advice. I am trying to plot different frequencies for each month (hence the three symbols per month), but keep getting this additional white line running the screen (across all months). Any idea how to remove that line, but keep the other symbols for each month? Code below:
t = [9,10,11,12,1,2]
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)
loadct,0,/silent
t = timegen(6, start=julday(9, 15, 2012), units='months') ;caldat=julday
void = label_date(date_format='%N')
plot, t, randomu(seed, 6), yrange=[0,15], xtickformat='label_date', $
xstyle=3, ystyle=3, xminor=1, xticks=5, charsize=1.25, charthick=4, xthick=4, ythick=4, title='Cluster 1', xtitle='Months', ytitle='Frequency'
loadct, 34, /silent
oplot, t,y1, psym=2, thick=4, color=30 ;blue asteriks (low years)
oplot, t,y2, psym=5, thick=4, color=150 ;green triangles (high years)
oplot, t,y3, psym=6, thick=4, color=250 ;red squares (other years)
if layout eq 'ps' then device,/close
end
Thanks,
TB
On Wednesday, April 17, 2013 7:06:03 PM UTC-4, David Fanning wrote:
> TB writes:
>
>
>
>>
>
>> I am trying to create a customized axis that goes 9,10,11,12,1,2 (in accordance with September through February the next calendar year). Any suggestions?
>
>
>
> IDL> t = timegen(6, start=Julday(9, 15, 2012), units='months')
>
> IDL> void = label_date(date_format='%N')
>
> IDL> cgplot, t, randomu(seed, 6), xtickformat='label_date', $
>
> xstyle=1, xticks=5
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|