mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +02:00
Fix for matplotlib>=3.4.0
This commit is contained in:
parent
bb1bc50886
commit
752bbf3996
1 changed files with 2 additions and 2 deletions
|
|
@ -241,8 +241,8 @@ class MatplotlibPlots(AbstractPlottingLibrary):
|
|||
except ImportError:
|
||||
from matplotlib.mlab import contiguous_regions
|
||||
# Handle united data, such as dates
|
||||
ax._process_unit_info(xdata=X, ydata=y1)
|
||||
ax._process_unit_info(ydata=y2)
|
||||
ax._process_unit_info([("x", X), ("y", y1)], convert=False)
|
||||
ax._process_unit_info([("y", y2)], convert=False)
|
||||
# Convert the arrays so we can work with them
|
||||
from numpy import ma
|
||||
x = ma.masked_invalid(ax.convert_xunits(X))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue