MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / sca

Function sca

site-packages/matplotlib/pyplot.py:902–914  ·  view source on GitHub ↗

Set the current Axes instance to *ax*. The current Figure is updated to the parent of *ax*.

(ax)

Source from the content-addressed store, hash-verified

900
901
902def sca(ax):
903 """
904 Set the current Axes instance to *ax*.
905
906 The current Figure is updated to the parent of *ax*.
907 """
908 managers = _pylab_helpers.Gcf.get_all_fig_managers()
909 for m in managers:
910 if ax in m.canvas.figure.axes:
911 _pylab_helpers.Gcf.set_active(m)
912 m.canvas.figure.sca(ax)
913 return
914 raise ValueError("Axes instance argument was not found in a figure")
915
916
917def gca(**kwargs):

Callers 1

axesFunction · 0.85

Calls 3

get_all_fig_managersMethod · 0.80
scaMethod · 0.80
set_activeMethod · 0.45

Tested by

no test coverage detected