mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-11 04:52:37 +02:00
[plotting] py3 compatibility, is it right, that relative imports always have to be in the format from . import <.>
This commit is contained in:
parent
3815658cc4
commit
8e4855db10
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ from ...core.parameterization.variational import VariationalPosterior
|
||||||
from .base_plots import x_frame2D
|
from .base_plots import x_frame2D
|
||||||
import itertools
|
import itertools
|
||||||
try:
|
try:
|
||||||
import Tango
|
from . import Tango
|
||||||
from matplotlib.cm import get_cmap
|
from matplotlib.cm import get_cmap
|
||||||
from matplotlib import pyplot as pb
|
from matplotlib import pyplot as pb
|
||||||
from matplotlib import cm
|
from matplotlib import cm
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ try:
|
||||||
from matplotlib import pyplot as pb
|
from matplotlib import pyplot as pb
|
||||||
except:
|
except:
|
||||||
pass
|
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']):
|
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']):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue