Hi Debasish,
I think you can do this by altering the x-axis values that you are
inputting into gsn_add_polymarker and gsn_add_polyline.
Let's say you want to overlay 4 different error bar plots.
Starting with xy example 13, and modifying to loop through 4 timesteps
of u: (as in example 13, the error values below are made up.)
;====Untested========================
offset = (/-.4,-.2,.2,.4/)
error_bar = new((/4,dimsizes(u&time)/),graphic)
centers = new((/4,dimsizes(u&time)/),graphic)
do gg = 0,3
do t=0,dimsizes(u&time)-1
plot = gsn_csm_y(wks,u(gg,:),res)
centers(gg,t)=gsn_add_polymarker(wks,plot,t+offset(gg),\
u(gg,t),polyres)
error_bar(gg,t)=gsn_add_polyline(wks,plot,\
(/t+offset(gg),t+offset(gg)/),(/u(gg,t)+1,u(gg,t)-1/),polyres)
end do
draw(plot)
end do
frame(wks)
;====================================
Notice the above example simply draws each successive plot on top of the
previous plot, and doesn't use the overlay procedure. You can probably
automate the creation of the offset array based on the number of
overlays you hope to do.
Hope that helps,
Adam
Debasish Pai Mazumder wrote:
> Hello,
>
>
>
> I have plotted an error bar plot using example xy_13.ncl from the web page
>
>
>
> http://www.ncl.ucar.edu/Applications/xy.shtml
>
>
>
> I also overlay multiple error bar plots in one plot. Due to overlapping,
> error bars of the different lines also overlap with each other.
>
> Is the there anyway to offset the error bars so that error bars for
> different lines can be seen separately?
>
>
>
> Thanks in advance
>
>
>
> Debasish
>
>
>
>
>
> ---------------------------------------------------------------------------------
>
>
>
> Debasish Pai Mazumder
>
> Graduate Research Assistant
> Geophysical Institute,University of Alaska Fairbanks,
>
> 903 Koyukuk Drive
>
> Fairbanks, AK 99775
>
> USA
>
>
>
> Phone : +1 907 474 7618
>
> Email : debasish_at_gi.alaska.edu <mailto:debasish_at_gi.alaska.edu>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Fri Sep 26 2008 - 11:15:46 MDT
This archive was generated by hypermail 2.2.0 : Mon Sep 29 2008 - 13:35:43 MDT