diff --git a/GPy/plotting/matplot_dep/plot_definitions.py b/GPy/plotting/matplot_dep/plot_definitions.py index 098a20cc..df75b839 100644 --- a/GPy/plotting/matplot_dep/plot_definitions.py +++ b/GPy/plotting/matplot_dep/plot_definitions.py @@ -135,26 +135,27 @@ class MatplotlibPlots(AbstractPlottingLibrary): if 'edgecolors' not in kwargs: kwargs['edgecolors'] = 'none' - if 'facecolors' not in kwargs: - kwargs['facecolors'] = color - if 'facecolors' in kwargs: - kwargs['facecolor'] = kwargs.pop('facecolors') - - if 'cmap' not in kwargs: - kwargs['cmap'] = LinearSegmentedColormap.from_list('WhToColor', ((1., 1., 1.), kwargs['facecolor']), N=len(percentiles)) - kwargs['cmap']._init() + color = kwargs.pop('facecolors') + if 'array' in kwargs: + array = kwargs.pop('array') + else: + array = 1.-np.abs(np.linspace(-.97, .97, len(percentiles)-1)) + if 'alpha' in kwargs: - kwargs['cmap']._lut[:, -1] = kwargs['alpha'] - - if 'array' not in kwargs: - if (len(percentiles)%2) == 0: - up = np.linspace(0, 1, len(percentiles)/2) - kwargs['array'] = np.r_[up, up[::-1][1:]] - else: - up = np.linspace(0, 1, len(percentiles)/2) - kwargs['array'] = np.r_[up, up[::-1]] + alpha = kwargs.pop('alpha') + else: + alpha = .8 + + if 'cmap' in kwargs: + cmap = kwargs.pop('cmap') + else: + cmap = LinearSegmentedColormap.from_list('WhToColor', (color, color), N=array.size) + cmap._init() + cmap._lut[:-3, -1] = alpha*array + + kwargs['facecolors'] = [cmap(i) for i in np.linspace(0,1,cmap.N)] # pop where from kwargs where = kwargs.pop('where') if 'where' in kwargs else None diff --git a/GPy/testing/plotting_tests.py b/GPy/testing/plotting_tests.py index 872c84b1..18a1971d 100644 --- a/GPy/testing/plotting_tests.py +++ b/GPy/testing/plotting_tests.py @@ -31,6 +31,7 @@ import numpy as np import GPy, os, sys from nose import SkipTest import unittest +from matplotlib.testing.compare import compare_images try: from matplotlib import cbook, pyplot as plt @@ -39,7 +40,7 @@ try: except: raise SkipTest("Matplotlib not installed, not testing plots") -extensions = ['svg', 'pdf'] +extensions = ['png', 'pdf'] def _image_directories(func): """ @@ -89,12 +90,15 @@ class test_image_comparison(object): fig.set_frameon(False) fig.savefig(os.path.join(self.result_dir, "{}.{}".format(base, ext)), frameon=False) print os.path.join(self.result_dir, "{}.{}".format(base, ext)) - with open(os.path.join(self.result_dir, "{}.{}".format(base, ext)), 'r') as f: - try: - with open(os.path.join(self.baseline_dir, "{}.{}".format(base, ext)), 'r') as b: - yield sequenceEqual, f.read(), b.read() - except: - yield notFound, os.path.join(self.baseline_dir, "{}.{}".format(base, ext)) + actual = os.path.join(self.result_dir, "{}.{}".format(base, ext)) + expected = os.path.join(self.baseline_dir, "{}.{}".format(base, ext)) + yield compare_images, actual, expected, 1e-3 + plt.close('all') + #with open(os.path.join(self.result_dir, "{}.{}".format(base, ext)), 'r') as f: + # try: + # with open(os.path.join(self.baseline_dir, "{}.{}".format(base, ext)), 'r') as b: + # except: + # yield notFound, os.path.join(self.baseline_dir, "{}.{}".format(base, ext)) #plt.close(num) return test_wrap diff --git a/GPy/testing/plotting_tests/baseline/gp_class_-failed-diff.png b/GPy/testing/plotting_tests/baseline/gp_class_-failed-diff.png new file mode 100644 index 00000000..6ec4e856 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_.pdf b/GPy/testing/plotting_tests/baseline/gp_class_.pdf index e3474fcd..78f2d5a9 100644 Binary files a/GPy/testing/plotting_tests/baseline/gp_class_.pdf and b/GPy/testing/plotting_tests/baseline/gp_class_.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_.png b/GPy/testing/plotting_tests/baseline/gp_class_.png new file mode 100644 index 00000000..0d9b84a1 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_.svg b/GPy/testing/plotting_tests/baseline/gp_class_.svg deleted file mode 100644 index db77357e..00000000 --- a/GPy/testing/plotting_tests/baseline/gp_class_.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/gp_class__pdf-failed-diff.png b/GPy/testing/plotting_tests/baseline/gp_class__pdf-failed-diff.png new file mode 100644 index 00000000..7254c426 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class__pdf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class__pdf.png b/GPy/testing/plotting_tests/baseline/gp_class__pdf.png new file mode 100644 index 00000000..bf7681cd Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class__pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_link-failed-diff.png b/GPy/testing/plotting_tests/baseline/gp_class_link-failed-diff.png new file mode 100644 index 00000000..937b5dae Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_link-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_link.pdf b/GPy/testing/plotting_tests/baseline/gp_class_link.pdf index 5f09a2d2..aa0b2209 100644 Binary files a/GPy/testing/plotting_tests/baseline/gp_class_link.pdf and b/GPy/testing/plotting_tests/baseline/gp_class_link.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_link.png b/GPy/testing/plotting_tests/baseline/gp_class_link.png new file mode 100644 index 00000000..ecb14e1c Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_link.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_link.svg b/GPy/testing/plotting_tests/baseline/gp_class_link.svg deleted file mode 100644 index d8a56507..00000000 --- a/GPy/testing/plotting_tests/baseline/gp_class_link.svg +++ /dev/null @@ -1,432 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/gp_class_link_pdf-failed-diff.png b/GPy/testing/plotting_tests/baseline/gp_class_link_pdf-failed-diff.png new file mode 100644 index 00000000..14bf6173 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_link_pdf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_link_pdf.png b/GPy/testing/plotting_tests/baseline/gp_class_link_pdf.png new file mode 100644 index 00000000..9ab36f73 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_link_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw-failed-diff.png b/GPy/testing/plotting_tests/baseline/gp_class_raw-failed-diff.png new file mode 100644 index 00000000..504cb8b4 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_raw-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw.pdf b/GPy/testing/plotting_tests/baseline/gp_class_raw.pdf index c20f9b20..f5447247 100644 Binary files a/GPy/testing/plotting_tests/baseline/gp_class_raw.pdf and b/GPy/testing/plotting_tests/baseline/gp_class_raw.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw.png b/GPy/testing/plotting_tests/baseline/gp_class_raw.png new file mode 100644 index 00000000..e65873b4 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_raw.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw.svg b/GPy/testing/plotting_tests/baseline/gp_class_raw.svg deleted file mode 100644 index 27c507a3..00000000 --- a/GPy/testing/plotting_tests/baseline/gp_class_raw.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw_link-failed-diff.png b/GPy/testing/plotting_tests/baseline/gp_class_raw_link-failed-diff.png new file mode 100644 index 00000000..b8c957bd Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_raw_link-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw_link.pdf b/GPy/testing/plotting_tests/baseline/gp_class_raw_link.pdf index 7fbd6d07..5098159f 100644 Binary files a/GPy/testing/plotting_tests/baseline/gp_class_raw_link.pdf and b/GPy/testing/plotting_tests/baseline/gp_class_raw_link.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw_link.png b/GPy/testing/plotting_tests/baseline/gp_class_raw_link.png new file mode 100644 index 00000000..c6deb9b1 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_raw_link.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw_link.svg b/GPy/testing/plotting_tests/baseline/gp_class_raw_link.svg deleted file mode 100644 index 972f18a4..00000000 --- a/GPy/testing/plotting_tests/baseline/gp_class_raw_link.svg +++ /dev/null @@ -1,27967 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw_link_pdf-failed-diff.png b/GPy/testing/plotting_tests/baseline/gp_class_raw_link_pdf-failed-diff.png new file mode 100644 index 00000000..c89d8eda Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_raw_link_pdf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw_link_pdf.png b/GPy/testing/plotting_tests/baseline/gp_class_raw_link_pdf.png new file mode 100644 index 00000000..b186fe9a Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_raw_link_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw_pdf-failed-diff.png b/GPy/testing/plotting_tests/baseline/gp_class_raw_pdf-failed-diff.png new file mode 100644 index 00000000..2057b7a9 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_raw_pdf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_class_raw_pdf.png b/GPy/testing/plotting_tests/baseline/gp_class_raw_pdf.png new file mode 100644 index 00000000..b4db6744 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_class_raw_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_conf.pdf b/GPy/testing/plotting_tests/baseline/gp_conf.pdf index 92bb222d..3a6542f0 100644 Binary files a/GPy/testing/plotting_tests/baseline/gp_conf.pdf and b/GPy/testing/plotting_tests/baseline/gp_conf.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/gp_conf.png b/GPy/testing/plotting_tests/baseline/gp_conf.png new file mode 100644 index 00000000..ecb14e1c Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_conf.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_conf.svg b/GPy/testing/plotting_tests/baseline/gp_conf.svg deleted file mode 100644 index d8a56507..00000000 --- a/GPy/testing/plotting_tests/baseline/gp_conf.svg +++ /dev/null @@ -1,432 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/gp_conf_pdf.png b/GPy/testing/plotting_tests/baseline/gp_conf_pdf.png new file mode 100644 index 00000000..9ab36f73 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_conf_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_data.pdf b/GPy/testing/plotting_tests/baseline/gp_data.pdf index c4ec5ca7..d231a0bc 100644 Binary files a/GPy/testing/plotting_tests/baseline/gp_data.pdf and b/GPy/testing/plotting_tests/baseline/gp_data.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/gp_data.png b/GPy/testing/plotting_tests/baseline/gp_data.png new file mode 100644 index 00000000..0d9b84a1 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_data.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_data.svg b/GPy/testing/plotting_tests/baseline/gp_data.svg deleted file mode 100644 index db77357e..00000000 --- a/GPy/testing/plotting_tests/baseline/gp_data.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/gp_data_pdf.png b/GPy/testing/plotting_tests/baseline/gp_data_pdf.png new file mode 100644 index 00000000..bf7681cd Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_data_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_density-failed-diff.png b/GPy/testing/plotting_tests/baseline/gp_density-failed-diff.png new file mode 100644 index 00000000..d9c7d872 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_density-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_density.pdf b/GPy/testing/plotting_tests/baseline/gp_density.pdf index aa1ecafa..ed4a9ecd 100644 Binary files a/GPy/testing/plotting_tests/baseline/gp_density.pdf and b/GPy/testing/plotting_tests/baseline/gp_density.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/gp_density.png b/GPy/testing/plotting_tests/baseline/gp_density.png new file mode 100644 index 00000000..c6deb9b1 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_density.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_density.svg b/GPy/testing/plotting_tests/baseline/gp_density.svg deleted file mode 100644 index 972f18a4..00000000 --- a/GPy/testing/plotting_tests/baseline/gp_density.svg +++ /dev/null @@ -1,27967 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/gp_density_pdf-failed-diff.png b/GPy/testing/plotting_tests/baseline/gp_density_pdf-failed-diff.png new file mode 100644 index 00000000..e935e772 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_density_pdf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_density_pdf.png b/GPy/testing/plotting_tests/baseline/gp_density_pdf.png new file mode 100644 index 00000000..b186fe9a Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_density_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_error.pdf b/GPy/testing/plotting_tests/baseline/gp_error.pdf index 7ef9298c..e71e894e 100644 Binary files a/GPy/testing/plotting_tests/baseline/gp_error.pdf and b/GPy/testing/plotting_tests/baseline/gp_error.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/gp_error.png b/GPy/testing/plotting_tests/baseline/gp_error.png new file mode 100644 index 00000000..3dd5cddb Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_error.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_error.svg b/GPy/testing/plotting_tests/baseline/gp_error.svg deleted file mode 100644 index 25cc730d..00000000 --- a/GPy/testing/plotting_tests/baseline/gp_error.svg +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/gp_error_pdf.png b/GPy/testing/plotting_tests/baseline/gp_error_pdf.png new file mode 100644 index 00000000..ec839872 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_error_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_mean.pdf b/GPy/testing/plotting_tests/baseline/gp_mean.pdf index 10d650f7..33eaf394 100644 Binary files a/GPy/testing/plotting_tests/baseline/gp_mean.pdf and b/GPy/testing/plotting_tests/baseline/gp_mean.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/gp_mean.png b/GPy/testing/plotting_tests/baseline/gp_mean.png new file mode 100644 index 00000000..e65873b4 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_mean.png differ diff --git a/GPy/testing/plotting_tests/baseline/gp_mean.svg b/GPy/testing/plotting_tests/baseline/gp_mean.svg deleted file mode 100644 index 27c507a3..00000000 --- a/GPy/testing/plotting_tests/baseline/gp_mean.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/gp_mean_pdf.png b/GPy/testing/plotting_tests/baseline/gp_mean_pdf.png new file mode 100644 index 00000000..b4db6744 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/gp_mean_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_-failed-diff.png new file mode 100644 index 00000000..49d4224e Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_.pdf b/GPy/testing/plotting_tests/baseline/sparse_gp_class_.pdf index 1503cdb8..ab227aa4 100644 Binary files a/GPy/testing/plotting_tests/baseline/sparse_gp_class_.pdf and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_.png new file mode 100644 index 00000000..0d9b84a1 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_.svg b/GPy/testing/plotting_tests/baseline/sparse_gp_class_.svg deleted file mode 100644 index db77357e..00000000 --- a/GPy/testing/plotting_tests/baseline/sparse_gp_class_.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class__pdf-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class__pdf-failed-diff.png new file mode 100644 index 00000000..421c9a65 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class__pdf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class__pdf.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class__pdf.png new file mode 100644 index 00000000..bf7681cd Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class__pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_link-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_link-failed-diff.png new file mode 100644 index 00000000..35abbd30 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_link-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_link.pdf b/GPy/testing/plotting_tests/baseline/sparse_gp_class_link.pdf index 90cfdd9e..b5eff63c 100644 Binary files a/GPy/testing/plotting_tests/baseline/sparse_gp_class_link.pdf and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_link.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_link.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_link.png new file mode 100644 index 00000000..ecb14e1c Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_link.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_link.svg b/GPy/testing/plotting_tests/baseline/sparse_gp_class_link.svg deleted file mode 100644 index d8a56507..00000000 --- a/GPy/testing/plotting_tests/baseline/sparse_gp_class_link.svg +++ /dev/null @@ -1,432 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_link_pdf-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_link_pdf-failed-diff.png new file mode 100644 index 00000000..e9c5eea2 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_link_pdf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_link_pdf.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_link_pdf.png new file mode 100644 index 00000000..9ab36f73 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_link_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw-failed-diff.png new file mode 100644 index 00000000..0733541b Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw.pdf b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw.pdf index 9fcc176b..65920998 100644 Binary files a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw.pdf and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw.png new file mode 100644 index 00000000..e65873b4 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw.svg b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw.svg deleted file mode 100644 index 27c507a3..00000000 --- a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link-failed-diff.png new file mode 100644 index 00000000..11988e85 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link.pdf b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link.pdf index 17ea5d1a..78fe80f8 100644 Binary files a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link.pdf and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link.png new file mode 100644 index 00000000..c6deb9b1 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link.svg b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link.svg deleted file mode 100644 index 972f18a4..00000000 --- a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link.svg +++ /dev/null @@ -1,27967 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link_pdf-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link_pdf-failed-diff.png new file mode 100644 index 00000000..12ff09e5 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link_pdf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link_pdf.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link_pdf.png new file mode 100644 index 00000000..b186fe9a Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_link_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_pdf-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_pdf-failed-diff.png new file mode 100644 index 00000000..8c9061b9 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_pdf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_pdf.png b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_pdf.png new file mode 100644 index 00000000..b4db6744 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_class_raw_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_conf-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_conf-failed-diff.png new file mode 100644 index 00000000..b89e020e Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_conf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_conf.pdf b/GPy/testing/plotting_tests/baseline/sparse_gp_conf.pdf index ad0d027d..4542582b 100644 Binary files a/GPy/testing/plotting_tests/baseline/sparse_gp_conf.pdf and b/GPy/testing/plotting_tests/baseline/sparse_gp_conf.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_conf.png b/GPy/testing/plotting_tests/baseline/sparse_gp_conf.png new file mode 100644 index 00000000..ecb14e1c Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_conf.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_conf.svg b/GPy/testing/plotting_tests/baseline/sparse_gp_conf.svg deleted file mode 100644 index d8a56507..00000000 --- a/GPy/testing/plotting_tests/baseline/sparse_gp_conf.svg +++ /dev/null @@ -1,432 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_conf_pdf.png b/GPy/testing/plotting_tests/baseline/sparse_gp_conf_pdf.png new file mode 100644 index 00000000..9ab36f73 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_conf_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_data.pdf b/GPy/testing/plotting_tests/baseline/sparse_gp_data.pdf index 34f01b09..d9be979d 100644 Binary files a/GPy/testing/plotting_tests/baseline/sparse_gp_data.pdf and b/GPy/testing/plotting_tests/baseline/sparse_gp_data.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_data.png b/GPy/testing/plotting_tests/baseline/sparse_gp_data.png new file mode 100644 index 00000000..0d9b84a1 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_data.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_data.svg b/GPy/testing/plotting_tests/baseline/sparse_gp_data.svg deleted file mode 100644 index db77357e..00000000 --- a/GPy/testing/plotting_tests/baseline/sparse_gp_data.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_data_pdf.png b/GPy/testing/plotting_tests/baseline/sparse_gp_data_pdf.png new file mode 100644 index 00000000..bf7681cd Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_data_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_density-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_density-failed-diff.png new file mode 100644 index 00000000..d9c7d872 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_density-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_density.pdf b/GPy/testing/plotting_tests/baseline/sparse_gp_density.pdf index a028b3c9..2c36e3d9 100644 Binary files a/GPy/testing/plotting_tests/baseline/sparse_gp_density.pdf and b/GPy/testing/plotting_tests/baseline/sparse_gp_density.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_density.png b/GPy/testing/plotting_tests/baseline/sparse_gp_density.png new file mode 100644 index 00000000..c6deb9b1 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_density.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_density.svg b/GPy/testing/plotting_tests/baseline/sparse_gp_density.svg deleted file mode 100644 index 972f18a4..00000000 --- a/GPy/testing/plotting_tests/baseline/sparse_gp_density.svg +++ /dev/null @@ -1,27967 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_density_pdf-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_density_pdf-failed-diff.png new file mode 100644 index 00000000..8666ff25 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_density_pdf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_density_pdf.png b/GPy/testing/plotting_tests/baseline/sparse_gp_density_pdf.png new file mode 100644 index 00000000..b186fe9a Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_density_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_error.pdf b/GPy/testing/plotting_tests/baseline/sparse_gp_error.pdf index 596cf2be..2e57adc6 100644 Binary files a/GPy/testing/plotting_tests/baseline/sparse_gp_error.pdf and b/GPy/testing/plotting_tests/baseline/sparse_gp_error.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_error.png b/GPy/testing/plotting_tests/baseline/sparse_gp_error.png new file mode 100644 index 00000000..3dd5cddb Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_error.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_error.svg b/GPy/testing/plotting_tests/baseline/sparse_gp_error.svg deleted file mode 100644 index 25cc730d..00000000 --- a/GPy/testing/plotting_tests/baseline/sparse_gp_error.svg +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_error_pdf.png b/GPy/testing/plotting_tests/baseline/sparse_gp_error_pdf.png new file mode 100644 index 00000000..ec839872 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_error_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_inducing-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_inducing-failed-diff.png new file mode 100644 index 00000000..776f2fe0 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_inducing-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_inducing.pdf b/GPy/testing/plotting_tests/baseline/sparse_gp_inducing.pdf index f6e3b1cf..5f3b5c6c 100644 Binary files a/GPy/testing/plotting_tests/baseline/sparse_gp_inducing.pdf and b/GPy/testing/plotting_tests/baseline/sparse_gp_inducing.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_inducing.png b/GPy/testing/plotting_tests/baseline/sparse_gp_inducing.png new file mode 100644 index 00000000..8a1ba4d2 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_inducing.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_inducing.svg b/GPy/testing/plotting_tests/baseline/sparse_gp_inducing.svg deleted file mode 100644 index 129c4454..00000000 --- a/GPy/testing/plotting_tests/baseline/sparse_gp_inducing.svg +++ /dev/null @@ -1,552 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_inducing_pdf-failed-diff.png b/GPy/testing/plotting_tests/baseline/sparse_gp_inducing_pdf-failed-diff.png new file mode 100644 index 00000000..f548c535 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_inducing_pdf-failed-diff.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_inducing_pdf.png b/GPy/testing/plotting_tests/baseline/sparse_gp_inducing_pdf.png new file mode 100644 index 00000000..64589594 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_inducing_pdf.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_mean.pdf b/GPy/testing/plotting_tests/baseline/sparse_gp_mean.pdf index c37424c1..38cdc4b5 100644 Binary files a/GPy/testing/plotting_tests/baseline/sparse_gp_mean.pdf and b/GPy/testing/plotting_tests/baseline/sparse_gp_mean.pdf differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_mean.png b/GPy/testing/plotting_tests/baseline/sparse_gp_mean.png new file mode 100644 index 00000000..e65873b4 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_mean.png differ diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_mean.svg b/GPy/testing/plotting_tests/baseline/sparse_gp_mean.svg deleted file mode 100644 index 27c507a3..00000000 --- a/GPy/testing/plotting_tests/baseline/sparse_gp_mean.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/GPy/testing/plotting_tests/baseline/sparse_gp_mean_pdf.png b/GPy/testing/plotting_tests/baseline/sparse_gp_mean_pdf.png new file mode 100644 index 00000000..b4db6744 Binary files /dev/null and b/GPy/testing/plotting_tests/baseline/sparse_gp_mean_pdf.png differ