Problem with NCL Plot

From: Hughlett, Taylor M <taylor.hughlett_at_nyahnyahspammersnyahnyah>
Date: Wed Dec 19 2012 - 15:01:25 MST

Good afternoon,

I am having issues with an NCL plot that I have created, and for the life of me cannot figure out why it is doing this.

The following is the code that I have for plotting this timeseries, and attached is an image of the timeseries that is produced.

For reference: resxy@gsnYRefLine and resxy have already been defined earlier in the program

Start Code
;moc timeseries, nh and sh
delete(resxy@gsnYRefLine)
resxy@vpWidthF = 0.79
resxy@vpHeightF = 0.55
resxy@tiYAxisString = "Sv"
resxy@tiMainString = "Maximum Atlantic Overturning"
resxy@gsnCenterString = ""
resxy@tiXAxisString = "years"
resxy@xyLineColors = (/"red","blue"/)
resxy@xyDashPatterns = (/0,0/)
;legend
  resxy@xyExplicitLegendLabels = (/"NH","SH"/)
  resxy@pmLegendDisplayMode = "Always" ; Turn on drawing legend.
  resxy@pmLegendZone = 1 ; Change the location
  resxy@pmLegendOrthogonalPosF = .1 ; of the legend
  resxy@pmLegendParallelPosF = .7 ; of the legend
  resxy@pmLegendWidthF = 0.15 ; Change width and
  resxy@pmLegendHeightF = 0.10 ; height of legend.
  resxy@pmLegendSide = "Bottom"
  resxy@lgPerimOn = False
  resxy@lgAutoManage = False
  resxy@lgLabelFontHeightF = .020
xy = gsn_csm_xy(wksts,itime,moc(0:1,:),resxy)
gsn_panel(wksts,xy,(/1,1/),resP)
system("convert -crop 0x0 -rotate 270 " + plotname_ts + ".ps" + " " + plotname_ts + ".png")

Any help on this issue would be greatly appreciated! If I have not submitted this to the correct mailing list, please let me know and I will do what I can to get it to the right one.

Thank you,
Taylor Hughlett

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Wed Dec 19 15:04:02 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2012 - 10:43:23 MST