Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 735bff4

Browse filesBrowse files
authored
Merge pull request #12778 from meeseeksmachine/auto-backport-of-pr-12776-on-v3.0.0-doc
Backport PR #12776 on branch v3.0.0-doc (Fix typo in example (on-borad -> on-board).)
2 parents df4ff0e + 8e0b024 commit 735bff4
Copy full SHA for 735bff4

File tree

Expand file treeCollapse file tree

1 file changed

+8
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-9
lines changed

‎examples/images_contours_and_fields/irregulardatagrid.py

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/irregulardatagrid.py
+8-9Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@
66
Comparison of a contour plot of irregularly spaced data interpolated
77
on a regular grid versus a tricontour plot for an unstructured triangular grid.
88
9-
Since :meth:`~.axes.Axes.contour` and :meth:`~.axes.Axes.contourf` expect the
10-
data to live on a regular grid, plotting a contour plot of irregularly spaced
11-
data requires different methods. The two options are:
9+
Since `~.axes.Axes.contour` and `~.axes.Axes.contourf` expect the data to live
10+
on a regular grid, plotting a contour plot of irregularly spaced data requires
11+
different methods. The two options are:
1212
13-
* Interpolate the data to a regular grid first. This can be done with on-borad
13+
* Interpolate the data to a regular grid first. This can be done with on-board
1414
means, e.g. via `~.tri.LinearTriInterpolator` or using external functionality
15-
e.g. via `scipy.interpolate.griddata`. Then plot the
16-
interpolated data with the usual :meth:`~.axes.Axes.contour`.
17-
* Directly use :meth:`~.axes.Axes.tricontour` or
18-
:meth:`~.axes.Axes.tricontourf` which will perform a triangulation
19-
internally.
15+
e.g. via `scipy.interpolate.griddata`. Then plot the interpolated data with
16+
the usual `~.axes.Axes.contour`.
17+
* Directly use `~.axes.Axes.tricontour` or `~.axes.Axes.tricontourf` which will
18+
perform a triangulation internally.
2019
2120
This example shows both methods in action.
2221
"""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.