From 3802f355e03792317173075465349b7bef88801d Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Thu, 8 Nov 2018 12:12:06 -0800 Subject: [PATCH] Backport PR #12776: Fix typo in example (on-borad -> on-board). --- .../irregulardatagrid.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/examples/images_contours_and_fields/irregulardatagrid.py b/examples/images_contours_and_fields/irregulardatagrid.py index 688db23e86df..b4fcc29d4ead 100644 --- a/examples/images_contours_and_fields/irregulardatagrid.py +++ b/examples/images_contours_and_fields/irregulardatagrid.py @@ -6,17 +6,16 @@ Comparison of a contour plot of irregularly spaced data interpolated on a regular grid versus a tricontour plot for an unstructured triangular grid. -Since :meth:`~.axes.Axes.contour` and :meth:`~.axes.Axes.contourf` expect the -data to live on a regular grid, plotting a contour plot of irregularly spaced -data requires different methods. The two options are: +Since `~.axes.Axes.contour` and `~.axes.Axes.contourf` expect the data to live +on a regular grid, plotting a contour plot of irregularly spaced data requires +different methods. The two options are: -* Interpolate the data to a regular grid first. This can be done with on-borad +* Interpolate the data to a regular grid first. This can be done with on-board means, e.g. via `~.tri.LinearTriInterpolator` or using external functionality - e.g. via `scipy.interpolate.griddata`. Then plot the - interpolated data with the usual :meth:`~.axes.Axes.contour`. -* Directly use :meth:`~.axes.Axes.tricontour` or - :meth:`~.axes.Axes.tricontourf` which will perform a triangulation - internally. + e.g. via `scipy.interpolate.griddata`. Then plot the interpolated data with + the usual `~.axes.Axes.contour`. +* Directly use `~.axes.Axes.tricontour` or `~.axes.Axes.tricontourf` which will + perform a triangulation internally. This example shows both methods in action. """