diff --git a/doc/missing-references.json b/doc/missing-references.json index a93a03b6ef73..87c9ce9b716f 100644 --- a/doc/missing-references.json +++ b/doc/missing-references.json @@ -356,7 +356,7 @@ "lib/matplotlib/pyplot.py:docstring of matplotlib.pyplot.gci:4" ], "Line2D.pick": [ - "doc/users/explain/figure/event_handling.rst:568" + "doc/users/explain/figure/event_handling.rst:571" ], "QuadContourSet.changed()": [ "lib/matplotlib/axes/_axes.py:docstring of matplotlib.axes._axes.Axes.contour:156", @@ -365,7 +365,7 @@ "lib/matplotlib/pyplot.py:docstring of matplotlib.pyplot.contourf:156" ], "Rectangle.contains": [ - "doc/users/explain/figure/event_handling.rst:280" + "doc/users/explain/figure/event_handling.rst:285" ], "Size.from_any": [ "lib/mpl_toolkits/axes_grid1/axes_grid.py:docstring of mpl_toolkits.axes_grid1.axes_grid.ImageGrid:87", diff --git a/galleries/examples/units/basic_units.py b/galleries/examples/units/basic_units.py index 3f64d145b65e..b104d887a6dc 100644 --- a/galleries/examples/units/basic_units.py +++ b/galleries/examples/units/basic_units.py @@ -147,9 +147,6 @@ def __getattribute__(self, name): return getattr(variable, name) return object.__getattribute__(self, name) - def __array__(self, dtype=object, copy=False): - return np.asarray(self.value, dtype) - def __array_wrap__(self, array, context=None, return_scalar=False): return TaggedValue(array, self.unit) @@ -226,13 +223,6 @@ def __rmul__(self, lhs): def __array_wrap__(self, array, context=None, return_scalar=False): return TaggedValue(array, self) - def __array__(self, t=None, context=None, copy=False): - ret = np.array(1) - if t is not None: - return ret.astype(t) - else: - return ret - def add_conversion_factor(self, unit, factor): def convert(x): return x*factor