autopep8 for plot_* and rank sources

This commit is contained in:
Olivier Debeir
2012-11-13 09:37:58 +01:00
parent 114f3a84f3
commit f133158792
14 changed files with 281 additions and 271 deletions
+2 -2
View File
@@ -24,6 +24,7 @@ import matplotlib.pyplot as plt
import numpy as np
from skimage.filter import rank
def plot_img_and_hist(img, axes, bins=256):
"""Plot an image along with its histogram and cumulative histogram.
@@ -60,7 +61,7 @@ img_rescale = exposure.equalize(img)
# Equalization
selem = disk(30)
img_eq = rank.equalize(img,selem=selem)
img_eq = rank.equalize(img, selem=selem)
# Display results
@@ -81,4 +82,3 @@ ax_cdf.set_ylabel('Fraction of total intensity')
# prevent overlap of y-axis labels
plt.subplots_adjust(wspace=0.4)
plt.show()