MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / isclose

Method isclose

lib/matplotlib/tests/test_ticker.py:422–424  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

420class _LogitHelper:
421 @staticmethod
422 def isclose(x, y):
423 return (np.isclose(-np.log(1/x-1), -np.log(1/y-1))
424 if 0 < x < 1 and 0 < y < 1 else False)
425
426 @staticmethod
427 def assert_almost_equal(x, y):

Callers 15

_all_points_on_planeFunction · 0.80
test_quaternionFunction · 0.80
fmt_eFunction · 0.80
get_minorticklocsMethod · 0.80
__init__Method · 0.80
_is_decadeFunction · 0.80
_is_close_to_intFunction · 0.80
__call__Method · 0.80
legend_elementsMethod · 0.80
test_colorbar_renormFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected