Skip to content

Commit 006468b

Browse files
authored
Merge pull request #12776 from anntzer/typo
Fix typo in example (on-borad -> on-board).
2 parents c62080b + 342ce46 commit 006468b

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

examples/images_contours_and_fields/irregulardatagrid.py

Lines 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)