Andrea,
The gsnXYBarChartColors resource was not implemented in the best of
ways, and this is
actually the expected behavior of this resource.
Awhile back another resource called gsnXYBarChartColors2 was
implemented to allow more control over the
colors. This resource applies the colors to each bar it encounters
(and it doesn't consider bars of
length 0 a bar), regardless of whether it is above or below the
reference line.
So, in your script, try changing gsnXYBarChartColors to
gsnXYBarChartColors2 (keeping the same values),
and you should get what you expect.
--Mary
On Jun 29, 2005, at 12:00 PM, Andrea Hahmann wrote:
> Hi!
>
> I have a bit of a problem with a "bar plot". I am trying to compare
> model biases between two sets of model simulations, with two different
> colors, in bar plot. What I have done is to combine the biases
> together (model1, model2, model1, model2, and so on) to form a single
> vector and then plot it using "gsn_csm_xy" with "gsnXYBarChart=True".
>
> On the first example (top panel) the boxes are purple, green, purple,
> etc. as they should be. In the second case, since one of the values is
> 0. the order of the colors is messed up.
>
> Attached are the ncl script and gif image.
>
> Any help will be appreciated!
> Andrea
>
> ----------------------------------------------------------------
> Andrea N. Hahmann, Ph.D.
> Research Applications Laboratory
> Natl. Center for Atmospheric Research Phone: 1-303-497-8383
> PO BOX 3000 Fax: 1-303-497-8401
> Boulder, CO 80301 hahmann@ucar.edu
> ----------------------------------------------------------------
> <bar.gif><testbars.ncl>_______________________________________________
> ncl-talk mailing list
> ncl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Wed Jun 29 2005 - 12:37:25 MDT