mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-21 14:05:14 +02:00
fix: matplotlib 2.0 mlba -> cbook:
This commit is contained in:
parent
0c6438608d
commit
93a7c08892
1 changed files with 5 additions and 2 deletions
|
|
@ -236,7 +236,10 @@ class MatplotlibPlots(AbstractPlottingLibrary):
|
||||||
|
|
||||||
polycol = []
|
polycol = []
|
||||||
for y1, y2 in pairwise(percentiles):
|
for y1, y2 in pairwise(percentiles):
|
||||||
import matplotlib.mlab as mlab
|
try:
|
||||||
|
from matplotlib.cbook import contiguous_regions
|
||||||
|
except ImportError:
|
||||||
|
from matplotlib.mlab import contiguous_regions
|
||||||
# Handle united data, such as dates
|
# Handle united data, such as dates
|
||||||
ax._process_unit_info(xdata=X, ydata=y1)
|
ax._process_unit_info(xdata=X, ydata=y1)
|
||||||
ax._process_unit_info(ydata=y2)
|
ax._process_unit_info(ydata=y2)
|
||||||
|
|
@ -265,7 +268,7 @@ class MatplotlibPlots(AbstractPlottingLibrary):
|
||||||
where &= ~mask
|
where &= ~mask
|
||||||
|
|
||||||
polys = []
|
polys = []
|
||||||
for ind0, ind1 in mlab.contiguous_regions(where):
|
for ind0, ind1 in contiguous_regions(where):
|
||||||
xslice = x[ind0:ind1]
|
xslice = x[ind0:ind1]
|
||||||
y1slice = y1[ind0:ind1]
|
y1slice = y1[ind0:ind1]
|
||||||
y2slice = y2[ind0:ind1]
|
y2slice = y2[ind0:ind1]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue