Fix overlapping text

This commit is contained in:
Johannes Schönberger
2013-11-30 19:15:00 +01:00
parent 7e45baa3e2
commit 444d574efa
+5 -1
View File
@@ -20,6 +20,7 @@ References
"""
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from skimage import data
@@ -30,6 +31,9 @@ from skimage.morphology import disk
from skimage.filter import rank
matplotlib.rcParams['font.size'] = 9
def plot_img_and_hist(img, axes, bins=256):
"""Plot an image along with its histogram and cumulative histogram.
@@ -70,7 +74,7 @@ img_eq = rank.equalize(img, selem=selem)
# Display results
f, axes = plt.subplots(2, 3, figsize=(8, 4))
f, axes = plt.subplots(2, 3, figsize=(8, 5))
ax_img, ax_hist, ax_cdf = plot_img_and_hist(img, axes[:, 0])
ax_img.set_title('Low contrast image')