[ncl-talk] Strange white lines across plot
Michael Notaro
mnotaro at wisc.edu
Fri Aug 1 16:10:54 MDT 2014
I am using NCL 6.1.2. Please see the attached plot
and note the odd white lines across the figure. Any
idea what caused it and how to remove it?
The plotting lines are listed below.
If I change the data values in the plot to some
arbitrary value, sometimes the lines go away.
Michael
wks=gsn_open_wks("ps","bar_revised2")
gsn_define_colormap(wks, "NCV_blue_red")
res = True
res at gsnDraw = False
res at gsnFrame = False
res at cnRasterModeOn=True
res at cnFillDrawOrder = "PreDraw"
res at tmXTOn = False
res at tmXTBorderOn = False
res at tmYROn = False
res at tmYRBorderOn = False
res at tmXBOn = False
res at tmXBBorderOn = False
res at tmYLOn = False
res at tmYLBorderOn = False
res at lbLabelFont = 25
res at lbLabelFontHeightF = 0.012
res at lbBottomMarginF = 0.5
res at lbTopMarginF = 0.25
res at cnFillOn = True
res at cnLinesOn = False
res at cnLevelSelectionMode = "ManualLevels"
lower=int2flt(floattointeger(min(VAR3)*100.))/100.
upper=int2flt(floattointeger(max(VAR3)*100.))/100.
delta=fabs(lower-upper)
res at cnLevelSpacingF=0.01
if ( (delta.ge.0.).and.(delta.lt.0.0025) ) then
res at cnLevelSpacingF=0.00001
end if
if ( (delta.ge.0.0025).and.(delta.lt.0.025) ) then
res at cnLevelSpacingF=0.0001
end if
if ( (delta.ge.0.025).and.(delta.lt.0.25) ) then
res at cnLevelSpacingF=0.001
end if
if ( (delta.ge.0.25).and.(delta.lt.2.5) ) then
res at cnLevelSpacingF=0.01
end if
if ( (delta.ge.2.5).and.(delta.lt.25.0) ) then
res at cnLevelSpacingF=0.1
end if
if ( (delta.ge.25.).and.(delta.lt.250) ) then
res at cnLevelSpacingF=1.0
end if
if ( (delta.ge.250.).and.(delta.lt.2500.) ) then
res at cnLevelSpacingF=10.0
end if
res at gsnSpreadColors=True
if ( (lower.ge.0.).and.(upper.ge.0.) ) then
res at gsnSpreadColorStart=120
res at gsnSpreadColorEnd=2
end if
if ( (lower.le.0.).and.(upper.le.0.) ) then
res at gsnSpreadColorStart=255
res at gsnSpreadColorEnd=137
end if
if ( (lower.lt.0.).and.(upper.gt.0.) ) then
ratio=fabs(lower)/fabs(upper)
res at gsnSpreadColorStart=255
res at gsnSpreadColorEnd=128-floattointeger(128./ratio)
end if
res at cnMinLevelValF=lower
res at cnMaxLevelValF=upper
res at lbBoxLinesOn=False
plot = gsn_csm_contour(wks, VAR3, res)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2014-08-01 at 5.07.21 PM.png
Type: image/png
Size: 73304 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140801/06a7ae25/attachment.png
More information about the ncl-talk
mailing list