Skip to content

Commit 7122484

Browse files
committed
pep8 fix E302
1 parent b959c79 commit 7122484

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

examples/pylab_examples/shading_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# or Generic Mapping Tools
1010
# (http://gmt.soest.hawaii.edu/gmt/doc/gmt/html/GMT_Docs/node145.html)
1111

12+
1213
def main():
1314
# Test data
1415
x, y = np.mgrid[-5:5:0.05, -5:5:0.05]
@@ -26,6 +27,7 @@ def main():
2627

2728
plt.show()
2829

30+
2931
def compare(z, cmap, ve=1):
3032
# Create subplots and hide ticks
3133
fig, axes = plt.subplots(ncols=2, nrows=2)

examples/specialty_plots/advanced_hillshading.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import matplotlib.pyplot as plt
66
from matplotlib.colors import LightSource, Normalize
77

8+
89
def display_colorbar():
910
"""Display a correct numeric colorbar for a shaded plot."""
1011
y, x = np.mgrid[-4:2:200j, -4:2:200j]
@@ -24,6 +25,7 @@ def display_colorbar():
2425

2526
ax.set_title('Using a colorbar with a shaded plot', size='x-large')
2627

28+
2729
def avoid_outliers():
2830
"""Use a custom norm to control the displayed z-range of a shaded plot."""
2931
y, x = np.mgrid[-4:2:200j, -4:2:200j]
@@ -46,6 +48,7 @@ def avoid_outliers():
4648

4749
fig.suptitle('Avoiding Outliers in Shaded Plots', size='x-large')
4850

51+
4952
def shade_other_data():
5053
"""Demonstrates displaying different variables through shade and color."""
5154
y, x = np.mgrid[-4:2:200j, -4:2:200j]

0 commit comments

Comments
 (0)