Skip to content

Commit 908795c

Browse files
committed
Revert "Add test for axis label when units set"
This reverts commit d9169cb.
1 parent ab15b75 commit 908795c

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

lib/matplotlib/testing/jpl_units/UnitDbl.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ def __bool__(self):
9191

9292
def _cmp(self, op, rhs):
9393
"""Check that *self* and *rhs* share units; compare them using *op*."""
94-
if rhs is None:
95-
return NotImplemented
9694
self.checkSameUnits(rhs, "compare")
9795
return op(self._value, rhs._value)
9896

lib/matplotlib/tests/test_units.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -283,23 +283,3 @@ def test_plot_kernel():
283283
# just a smoketest that fail
284284
kernel = Kernel([1, 2, 3, 4, 5])
285285
plt.plot(kernel)
286-
287-
288-
@check_figures_equal(extensions=['png'])
289-
def test_unit_axis_label(fig_test, fig_ref):
290-
import matplotlib.testing.jpl_units as units
291-
units.register()
292-
293-
data = [0 * units.km, 1 * units.km, 2 * units.km]
294-
295-
ax_test = fig_test.subplots()
296-
ax_ref = fig_ref.subplots()
297-
axs = [ax_test, ax_ref]
298-
299-
for ax in axs:
300-
ax.yaxis.set_units('km')
301-
ax.set_xlim(10, 20)
302-
ax.set_ylim(10, 20)
303-
304-
ax_test.scatter([1, 2, 3], data, edgecolors='none')
305-
ax_ref.plot([1, 2, 3], data, marker='o', linewidth=0)

0 commit comments

Comments
 (0)