Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test contour levels that are +/-np.inf #283

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Test contour levels that are +/-np.inf #283

merged 1 commit into from
Sep 28, 2023

Conversation

ianthomas23
Copy link
Member

Adding tests to confirm that contour levels of -np.inf and np.inf are valid on all platforms. These are useful, for example, to produce filled contours from a level z upwards which would be achieved using

from contourpy import contour_generator
import numpy as np

cg = contour_generator(...)
filled = cg.filled(1.0, np.inf)

Doc update with examples to follow in a separate PR.

@ianthomas23 ianthomas23 merged commit 27c6217 into main Sep 28, 2023
56 checks passed
@ianthomas23 ianthomas23 deleted the test_inf_level branch September 28, 2023 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant