From 9e0e9c018240576af14ad8ef064a117cf7005d74 Mon Sep 17 00:00:00 2001 From: Siva Prasad Varma Date: Fri, 14 Mar 2014 22:54:03 +0530 Subject: [PATCH] changed to plt.subplots --- doc/examples/plot_ihc_color_separation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/examples/plot_ihc_color_separation.py b/doc/examples/plot_ihc_color_separation.py index f89f28fe..f7bf689e 100644 --- a/doc/examples/plot_ihc_color_separation.py +++ b/doc/examples/plot_ihc_color_separation.py @@ -61,10 +61,10 @@ h = rescale_intensity(ihc_hed[:, :, 0], out_range=(0, 1)) d = rescale_intensity(ihc_hed[:, :, 2], out_range=(0, 1)) zdh = np.dstack((np.zeros_like(h), d, h)) -plt.figure() -plt.imshow(zdh) -plt.title("Stain separated image (rescaled)") -plt.axis('off') +f, ax = plt.subplots() +ax.imshow(zdh) +ax.set_title("Stain separated image (rescaled)") +ax.axis('off') plt.show() """