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

Function _mask_tester

lib/matplotlib/tests/test_colors.py:822–828  ·  view source on GitHub ↗

Checks mask handling

(norm_instance, vals)

Source from the content-addressed store, hash-verified

820
821
822def _mask_tester(norm_instance, vals):
823 """
824 Checks mask handling
825 """
826 masked_array = np.ma.array(vals)
827 masked_array[0] = np.ma.masked
828 assert_array_equal(masked_array.mask, norm_instance(masked_array).mask)
829
830
831@image_comparison(['levels_and_colors.png'], style='mpl20')

Callers 2

test_NormalizeFunction · 0.85
test_SymLogNormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…