()
| 35 | |
| 36 | @contextmanager |
| 37 | def _import_matplotlib(): |
| 38 | try: |
| 39 | import matplotlib.pyplot as plt |
| 40 | except ImportError as e: |
| 41 | warnings.warn("To draw plots you should install matplotlib.") |
| 42 | raise ImportError(str(e)) |
| 43 | yield plt |
| 44 | |
| 45 | |
| 46 | def _draw(plt, x, y, x_label, y_label, title): |
no test coverage detected