From 005a43c83356e9c630e1d96a15d068a8dad51a92 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Mon, 3 Aug 2020 20:53:21 +0200 Subject: [PATCH] Fix PEP8 --- mpas_analysis/ocean/plot_transect_subtask.py | 1 - mpas_analysis/shared/plot/vertical_section.py | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mpas_analysis/ocean/plot_transect_subtask.py b/mpas_analysis/ocean/plot_transect_subtask.py index 843badb7a..0c212ab58 100644 --- a/mpas_analysis/ocean/plot_transect_subtask.py +++ b/mpas_analysis/ocean/plot_transect_subtask.py @@ -657,7 +657,6 @@ def _plot_transect(self, remappedModelClimatology, remappedRefClimatology): # }}} - def _lat_greater_extent(self, lat, lon): # {{{ """ diff --git a/mpas_analysis/shared/plot/vertical_section.py b/mpas_analysis/shared/plot/vertical_section.py index ed89d9326..eea14f770 100644 --- a/mpas_analysis/shared/plot/vertical_section.py +++ b/mpas_analysis/shared/plot/vertical_section.py @@ -708,8 +708,8 @@ def plot_vertical_section( movingAveragePoints : int, optional the number of points over which to perform a moving average - NOTE: this option is mostly intended for use when ``xCoordIsTime`` is True, - although it will work with other data as well. Also, the moving + NOTE: this option is mostly intended for use when ``xCoordIsTime`` is + True, although it will work with other data as well. Also, the moving average calculation is based on number of points, not actual x axis values, so for best results, the values in the first entry in ``xCoords`` should be equally spaced. @@ -893,7 +893,8 @@ def plot_vertical_section( else: # display a white heatmap to get a white background for non-land zeroArray = xr.zeros_like(field) - plt.tricontourf(maskedTriangulation, zeroArray.values.ravel(), colors='white') + plt.tricontourf(maskedTriangulation, zeroArray.values.ravel(), + colors='white') ax = plt.gca() ax.set_facecolor(backgroundColor) @@ -1026,6 +1027,7 @@ def plot_vertical_section( return fig, ax # }}} + def _get_triangulation(x, y, mask): """divide each quad in the x/y mesh into 2 triangles"""