mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-26 13:26:22 +02:00
[plotly] starting plotly
This commit is contained in:
parent
cbb06f3efc
commit
e0d48a0558
18 changed files with 120 additions and 128 deletions
|
|
@ -30,14 +30,17 @@
|
|||
import numpy as np
|
||||
import GPy, os
|
||||
from nose import SkipTest
|
||||
from matplotlib.testing.compare import compare_images
|
||||
from matplotlib.testing.noseclasses import ImageComparisonFailure
|
||||
|
||||
from ..util.config import config
|
||||
|
||||
if config.get('plotting', 'library') != 'matplotlib':
|
||||
raise SkipTest("Matplotlib not installed, not testing plots")
|
||||
|
||||
try:
|
||||
from matplotlib import cbook, pyplot as plt
|
||||
import matplotlib
|
||||
matplotlib.rcParams['text.usetex'] = False
|
||||
except:
|
||||
from matplotlib.testing.compare import compare_images
|
||||
from matplotlib.testing.noseclasses import ImageComparisonFailure
|
||||
except ImportError:
|
||||
raise SkipTest("Matplotlib not installed, not testing plots")
|
||||
|
||||
extensions = ['png']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue