Patch matplotlib function 'use
()
| 115 | |
| 116 | |
| 117 | def patch_is_interactive(): |
| 118 | """Patch matplotlib function 'use'""" |
| 119 | matplotlib = sys.modules["matplotlib"] |
| 120 | |
| 121 | def patched_is_interactive(): |
| 122 | return matplotlib.rcParams["interactive"] |
| 123 | |
| 124 | matplotlib.real_is_interactive = matplotlib.is_interactive |
| 125 | matplotlib.is_interactive = patched_is_interactive |
| 126 | |
| 127 | |
| 128 | def activate_matplotlib(enable_gui_function): |
no outgoing calls
no test coverage detected