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

Function test_pass_scale

lib/matplotlib/tests/test_scale.py:258–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256
257
258def test_pass_scale():
259 # test passing a scale object works...
260 fig, ax = plt.subplots()
261 scale = mscale.LogScale(axis=None)
262 ax.set_xscale(scale)
263 scale = mscale.LogScale(axis=None)
264 ax.set_yscale(scale)
265 assert ax.xaxis.get_scale() == 'log'
266 assert ax.yaxis.get_scale() == 'log'
267
268
269def test_scale_deepcopy():

Callers

nothing calls this directly

Calls 4

set_xscaleMethod · 0.80
get_scaleMethod · 0.80
subplotsMethod · 0.45
set_yscaleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…