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

Function _inverse_tester

lib/matplotlib/tests/test_colors.py:806–810  ·  view source on GitHub ↗

Checks if the inverse of the given normalization is working.

(norm_instance, vals)

Source from the content-addressed store, hash-verified

804
805
806def _inverse_tester(norm_instance, vals):
807 """
808 Checks if the inverse of the given normalization is working.
809 """
810 assert_array_almost_equal(norm_instance.inverse(norm_instance(vals)), vals)
811
812
813def _scalar_tester(norm_instance, vals):

Callers 2

test_NormalizeFunction · 0.85
test_SymLogNormFunction · 0.85

Calls 1

inverseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…