Skip to content

Commit f6e7512

Browse files
authored
Merge pull request #24244 from oscargus/tridocs
Clarify that z must be finite for tricountour(f)
2 parents c450aa7 + e79e324 commit f6e7512

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/tri/tricontour.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ def _contour_args(self, args, kwargs):
109109
The height values over which the contour is drawn. Color-mapping is
110110
controlled by *cmap*, *norm*, *vmin*, and *vmax*.
111111
112+
.. note::
113+
All values in *z* must be finite. Hence, nan and inf values must
114+
either be removed or `~.Triangulation.set_mask` be used.
115+
112116
levels : int or array-like, optional
113117
Determines the number and positions of the contour lines / regions.
114118

0 commit comments

Comments
 (0)