Skip to content

Bins array limits #268

Description

@HIKassem

bins = np.linspace(np.min(var), np.max(var), 6)
if isinstance(bins, int):
bins = np.linspace(np.min(var), np.max(var), bins)

In cases where bins argument isn't provided by the user. Both np.min and np.max functions may return nan if the var array has nan values. I think simply replacing them with np.nanmin and np.nanmax would fix this issue. Otherwise just an error message would be nice at this point because currently matplotlib throws an error which is hard to trace to this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions