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

Function test_norm_deepcopy

lib/matplotlib/tests/test_colors.py:1592–1602  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1590
1591
1592def test_norm_deepcopy():
1593 norm = mcolors.LogNorm()
1594 norm.vmin = 0.0002
1595 norm2 = copy.deepcopy(norm)
1596 assert norm2.vmin == norm.vmin
1597 assert isinstance(norm2._scale, mscale.LogScale)
1598 norm = mcolors.Normalize()
1599 norm.vmin = 0.0002
1600 norm2 = copy.deepcopy(norm)
1601 assert norm2._scale is None
1602 assert norm2.vmin == norm.vmin
1603
1604
1605def test_set_clim_emits_single_callback():

Callers

nothing calls this directly

Calls 1

deepcopyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…