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

Method assert_almost_equal

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

Source from the content-addressed store, hash-verified

425
426 @staticmethod
427 def assert_almost_equal(x, y):
428 ax = np.array(x)
429 ay = np.array(y)
430 assert np.all(ax > 0) and np.all(ax < 1)
431 assert np.all(ay > 0) and np.all(ay < 1)
432 lx = -np.log(1/ax-1)
433 ly = -np.log(1/ay-1)
434 assert_almost_equal(lx, ly)
435
436
437class TestLogitLocator:

Callers 10

test_proj_transformFunction · 0.80
test_colorbar_autoticksFunction · 0.80
test_aspectsFunction · 0.80
test_hexbin_log_offsetsFunction · 0.80
test_basic_majorMethod · 0.80
test_minorMethod · 0.80
test_ellipse_verticesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected