From d961f736f23f703581ee136980ca405e7c1258f7 Mon Sep 17 00:00:00 2001 From: James Hensman Date: Thu, 16 Oct 2014 16:53:23 +0100 Subject: [PATCH] changed pylab for pyplot in classification examples --- GPy/examples/classification.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/GPy/examples/classification.py b/GPy/examples/classification.py index e547c86b..deb44ffc 100644 --- a/GPy/examples/classification.py +++ b/GPy/examples/classification.py @@ -9,7 +9,7 @@ import GPy import pods try: - import pylab as pb + from matplotlib import pyplot as plt except: pass @@ -72,7 +72,7 @@ def toy_linear_1d_classification(seed=default_seed, optimize=True, plot=True): # Plot if plot: - fig, axes = pb.subplots(2, 1) + fig, axes = plt.subplots(2, 1) m.plot_f(ax=axes[0]) m.plot(ax=axes[1]) @@ -108,7 +108,7 @@ def toy_linear_1d_classification_laplace(seed=default_seed, optimize=True, plot= # Plot if plot: - fig, axes = pb.subplots(2, 1) + fig, axes = plt.subplots(2, 1) m.plot_f(ax=axes[0]) m.plot(ax=axes[1]) @@ -138,7 +138,7 @@ def sparse_toy_linear_1d_classification(num_inducing=10, seed=default_seed, opti # Plot if plot: - fig, axes = pb.subplots(2, 1) + fig, axes = plt.subplots(2, 1) m.plot_f(ax=axes[0]) m.plot(ax=axes[1]) @@ -172,7 +172,7 @@ def toy_heaviside(seed=default_seed, optimize=True, plot=True): # Plot if plot: - fig, axes = pb.subplots(2, 1) + fig, axes = plt.subplots(2, 1) m.plot_f(ax=axes[0]) m.plot(ax=axes[1])