From 8e4855db108cc12b94d4835aee0dac859c06d9d2 Mon Sep 17 00:00:00 2001 From: mzwiessele Date: Wed, 30 Sep 2015 17:16:58 +0100 Subject: [PATCH] [plotting] py3 compatibility, is it right, that relative imports always have to be in the format from . import <.> --- GPy/plotting/matplot_dep/dim_reduction_plots.py | 2 +- GPy/plotting/matplot_dep/mapping_plots.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/plotting/matplot_dep/dim_reduction_plots.py b/GPy/plotting/matplot_dep/dim_reduction_plots.py index 6620400e..40da7cfd 100644 --- a/GPy/plotting/matplot_dep/dim_reduction_plots.py +++ b/GPy/plotting/matplot_dep/dim_reduction_plots.py @@ -7,7 +7,7 @@ from ...core.parameterization.variational import VariationalPosterior from .base_plots import x_frame2D import itertools try: - import Tango + from . import Tango from matplotlib.cm import get_cmap from matplotlib import pyplot as pb from matplotlib import cm diff --git a/GPy/plotting/matplot_dep/mapping_plots.py b/GPy/plotting/matplot_dep/mapping_plots.py index a91797b7..fd964a93 100644 --- a/GPy/plotting/matplot_dep/mapping_plots.py +++ b/GPy/plotting/matplot_dep/mapping_plots.py @@ -7,7 +7,7 @@ try: from matplotlib import pyplot as pb except: pass -from base_plots import x_frame1D, x_frame2D +from .base_plots import x_frame1D, x_frame2D def plot_mapping(self, plot_limits=None, which_data='all', which_parts='all', resolution=None, levels=20, samples=0, fignum=None, ax=None, fixed_inputs=[], linecol=Tango.colorsHex['darkBlue']):