I'm creating x/y plots of two fields with different data but same positions. Each field has its own set of locations for invalid data. How is this treated by the Plot module ?
Case #1: To plot parameter 1 (P1) vs. parameter 2 (P2), I Replace the positions component in P1 with the data component of P2, and send this new field into Plot. I wish to not plot data points that are invalid either in P1 or P2. The result that I get is that the plotted field object has same number of valid points as P2 (according to Describe). Case #2: So, I tried adding another step. I extract the invalid positions component of P1 and P2 and do a logical .or. to get a new invalid positions array (assuming "def positions"). I then replace the invalid positions component of the new field object with this array. The plotted field object has a greater number of invalid points than either P1 or P2, so I initially assume that things are working OK. I compared plots using both methods, and the results are confusing. The plots look the same (same number of plotted points - It appears the fewer number) regardless of use of the "combined" invalid positions array. Also, for case #1, some data that should be tagged as "invalid" still remains in the new field (Describe tells me that valid positions range from some reasonable number to e+38, obviously the out-of-range value). This is even though the high range does not show up in the plot (x and y axis each range < 40) Is Plot smart enough to throw out all the appropriate invalid points (in x and y) even though Describe appears to indicate that they remain in the field ? Am I doing this all wrong ? Sharon
