shadedErrorBar icon indicating copy to clipboard operation
shadedErrorBar copied to clipboard

Interpolating around NaNs

Open aloleary93 opened this issue 7 years ago • 1 comments

Hi there,

The script seems to interpolate around NaN values so that the error bar patch forms a continuous area. Is there a way to avoid this? I.e. present NaN values as discontinuous gaps in the shaded error bar?

Best,

Alice

aloleary93 avatar Dec 19 '17 17:12 aloleary93

Yeah... I know. How are you supplying the data? e.g. do you gave a matrix of some sort which contains the odd NaN then you see them when the function calculates the mean and standard error?

raacampbell avatar Dec 19 '17 17:12 raacampbell

Hello,

I have the same issue as Alice. Is there a way to avoid the interpolation around NaN values ? I use vectors for the x, y and errBar parameters.

Best, Rémy

cremy33 avatar Feb 07 '23 10:02 cremy33

I think at the moment the best thing is to pre-process data so that NaNs don't appear. I don't really know what more to say because there are multiple reasons why NaN happen. In some situations you might want to interpolate through them. In others not. Since you have vectors for all parameters, this should be possible for you (if I understand correctly).

raacampbell avatar Feb 07 '23 13:02 raacampbell