mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-28 15:40:22 +08:00
[ENH] Fixed some PEP8 issues in example gallery.
This commit is contained in:
@@ -108,11 +108,13 @@ def highlight_bars(bars, indexes):
|
||||
image = data.load('brick.png')
|
||||
lbp = local_binary_pattern(image, n_points, radius, METHOD)
|
||||
|
||||
|
||||
def hist(ax, lbp):
|
||||
n_bins = lbp.max() + 1
|
||||
return ax.hist(lbp.ravel(), normed=True, bins=n_bins, range=(0, n_bins),
|
||||
facecolor='0.5')
|
||||
|
||||
|
||||
# plot histograms of LBP of textures
|
||||
fig, (ax_img, ax_hist) = plt.subplots(nrows=2, ncols=3, figsize=(9, 6))
|
||||
plt.gray()
|
||||
|
||||
Reference in New Issue
Block a user