Re: color fill for Bar Chart gsnXYBarChartColors

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 26 2010 - 08:32:53 MDT

Hi Dave.

I don't remember if I've ever tried the bar chart stuff in conjunction with gsn_csm_xy2.

Can you write the three data arrays being passed to gsn_csm_xy2 to a file and send me the file so
that I can try running your script here?

You can do this with a NetCDF file:

  fout = addile("formary.nc","c")
  fout->julian_day = julian_day
  fout->pw_INPA = pw_INPA
  fout->precip = precip

Or, if you can send me the original data file, that's fine too.

Thanks,

--Mary

On Apr 25, 2010, at 6:29 PM, David Adams wrote:

> Hi All,
> I am trying to fill in the bar chart with a solid color. The bar outline in not important.
> When I used the following command I only a get black outline for the bars
> and not the solid fill color.
>
> What am I doing wrong here?
>
> saludos,
> Dave
>
> ..........................................................ncl-code--------------------------------------------------------------------
>
> wks = gsn_open_wks ("pdf","test") ; open pdf file
>
> ; Left variable
> resL = True ; plot mods desired
> resL@gsnDraw = False
> resL@gsnFrame = False
> resL@xyMarkLineModes = "markers"
> resL@xyMarkers = 16
> resL@xyMarkerColor = "blue"
> resL@xyMarkerSizeF = 0.005
> resL@tiYAxisString = "PWV (cm) " ; axis string
> resL@tiXAxisString = "Decimals Days" ; Label for the X axis
> resL@trXMaxF = 57.7
> resL@trXMinF = 57.6
> resL@trYMaxF = 6.75
> resL@trYMinF = 4
>
> ; Right variable
> resR = True ; plot mods desired
> resR@gsnDraw = False
> resR@gsnFrame = False
> resR@gsnXYBarChart = True
> resR@gsnXYBarChartColors = (/"red"/)
>
> resR@tiYAxisString = "(Precipitation mm/10min)" ; axis string
>
> resR@trXMaxF = 57.7
> resR@trXMinF = 57.6
> resR@trYMaxF = 1.0
> resR@trYMinF = 0.05
> resR@tiMainString = "INPA (GAMMIT vs GIPSY) PWV vs rainfall" ; Title for the XY plot
>
> plot1 = gsn_csm_xy2(wks,julian_day,pw_INPA,precip,resL,resR)
>
> draw(plot1)
> frame(wks)
> end
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Apr 26 08:33:01 2010

This archive was generated by hypermail 2.1.8 : Thu Apr 29 2010 - 08:05:27 MDT