Re: _FillValue on XY plots

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed, 19 Jul 2006 07:26:51 -0600 (MDT)

> I'm creating a scatterplot in which the X variable contain
> _FillValue=-9. All X values are positive, but some Y values can be negative.
> If I don't set trXMinF, then the X axis is set automatically to start at
> 0. However, if I set trXMinF<0 (so that both axes have the same length,
> then the missing values are plotted together with everything else. Any
> ideas regarding this?
> _______________________________________________

Umm .. a quick test indicates a possible bug.

You can use the "ind" function to pass only
non-missing data:

 res_at_trXMinF =
 res_at_trXMaxF =

 i = ind(.not.ismissing(x) .and. ind(.not.ismissing(y) )
 res_at_tiMainString = "Scatter Plot: Missing Values: trXMinF/trXMaxF: ind"
 plot = gsn_csm_xy (wks,x(i), y(i), res)

good luck
ncl-talk mailing list
Received on Wed Jul 19 2006 - 07:26:51 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 19 2006 - 08:40:45 MDT