()
| 182 | |
| 183 | |
| 184 | def activate_pyplot(): |
| 185 | pyplot = sys.modules["matplotlib.pyplot"] |
| 186 | pyplot.show._needmain = False |
| 187 | # We need to detect at runtime whether show() is called by the user. |
| 188 | # For this, we wrap it into a decorator which adds a 'called' flag. |
| 189 | pyplot.draw_if_interactive = flag_calls(pyplot.draw_if_interactive) |
nothing calls this directly
no test coverage detected