Skip to content

Commit

Permalink
Fix PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Aug 17, 2020
1 parent 37b13c0 commit 2c8fd10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion mpas_analysis/ocean/plot_transect_subtask.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ def _plot_transect(self, remappedModelClimatology, remappedRefClimatology):

# }}}


def _lat_greater_extent(self, lat, lon):
# {{{
"""
Expand Down
8 changes: 5 additions & 3 deletions mpas_analysis/shared/plot/vertical_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,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.
Expand Down Expand Up @@ -861,7 +861,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)
Expand Down Expand Up @@ -991,6 +992,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"""

Expand Down

0 comments on commit 2c8fd10

Please sign in to comment.