🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@ChrisBeaumont
Copy link
Contributor

This is one possible solution to #2356

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if there's a way to do this without calculating np.isfinite(d).all() twice for each element. Maybe something like:

finite_dl = [d for d in dl if np.isfinite(d).all()]
if len(finite_dl):
    dl = finite_dl

@mdboom
Copy link
Member

mdboom commented Aug 30, 2013

Looks good. Needs a test -- I don't think it will need to be an image comparison test.

@ChrisBeaumont
Copy link
Contributor Author

Added a test

@mdboom
Copy link
Member

mdboom commented Aug 30, 2013

Ok. 👍 from me, then. Might let this sit for a few days to get other feedback, but this makes sense to me.

dmcdougall added a commit that referenced this pull request Aug 31, 2013
Better axis limits when using shared axes and empty subplots
@dmcdougall dmcdougall merged commit a091f6d into matplotlib:master Aug 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants