Set the current Axes instance to *ax*. The current Figure is updated to the parent of *ax*.
(ax)
| 900 | |
| 901 | |
| 902 | def 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 | |
| 917 | def gca(**kwargs): |
no test coverage detected