<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi, <br>
I'm trying to do a panel plot in which I want to use 2 different
color bars in each plot in the panel. <br>
I do get the plots but I have a problem with the color bars: I'd
like to deactivate the individual color bars ( for each plot) and
have the color bars as panel plot color bars - i.e one horizontal (
like in the plot ) and one vertical ( the second one which doesn't
show up) but what I get is the result attached. <br>
<br>
Could someone please tell me what should I change in my script to
make:<br>
- the individual color bars disappear for each plot <br>
- the second panel plot color bar appear to the left ( the vertical
bar) <br>
I tried to set both the individual or panel resources for plotting
the bar to False/True but doesn't work. <br>
I attached the plot and the code. Thanks. <br>
Ioana <br>
<br>
Relevant code part: <br>
<br>
<br>
plot = new(12,graphic)<br>
res = True<br>
res@gsnDraw = False ; turn off draw<br>
res@gsnFrame = False ; turn off frame<br>
............................<br>
<b> res@lbLabelBar = False</b><br>
tres = res<br>
dres = res<br>
tres@cnFillPalette = "BlWhRe"<br>
<b> tres@lbLabelBar = False</b><br>
tres@lbOrientation = "horizontal"<br>
tres@mpFillOn = False ; turn off map
fill<br>
tres@cnLevelSelectionMode = "ManualLevels"<br>
tres@cnMinLevelValF = -0.03 ; set min contour
level<br>
tres@cnMaxLevelValF = 0.03 ; set max contour
level<br>
tres@cnLevelSpacingF = 0.005<br>
<b> cmap_r = read_colormap_file("NCV_manga")</b><b><br>
</b><b> dres@cnFillPalette = cmap_r</b><br>
<b>d</b><b>res@lbLabelBar = False</b><br>
dres@cnLevelSelectionMode = "ManualLevels"<br>
dres@mpShapeMode = "FreeAspect"<br>
kk=0<br>
ll=1<br>
do ii=0,5<br>
plot(kk) = gsn_csm_contour_map(wks,cont1(ii,:,:),tres)<br>
newvar=new((/dimsizes(cont1)/),typeof(cont1))<br>
newvar(ii,:,:)=agcms1@_FillValue<br>
newvar(ii,{-25:25},:)=cont1(ii,{-25:25},:)<br>
ter_plot = gsn_csm_contour(wks,newvar(ii,:,:)*100,dres)<br>
overlay(plot(kk),ter_plot)<br>
plot(ll) = gsn_csm_contour_map(wks,aagcm1(ii,:,:),tres)<br>
newvar2=new((/dimsizes(aagcm1)/),typeof(aagcm1))<br>
newvar2(ii,:,:)=aagcm1@_FillValue<br>
newvar2(ii,{-25:25},:)=aagcm1(ii,{-25:25},:)<br>
ter_plot2 = gsn_csm_contour(wks,newvar2(ii,:,:)*100,dres)<br>
overlay(plot(ll),ter_plot2)<br>
resP=True<br>
resP@gsnMaximize = True ; large format<br>
<b> resP@gsnPanelLabelBar = True </b> ; add common
colorbar<br>
resP@lbLabelAutoStride = True ; auto stride on labels<br>
resP@lbLabelFontHeight = 0.015<br>
resP@lbOrientation = "horizontal"<br>
; draw(plot)<br>
; frame(wks)<br>
gsn_panel(wks,plot,(/6,2/),resP)<br>
kk=kk+2<br>
ll=ll+2<br>
end do<br>
end <br>
<br>
</body>
</html>