(figs)
| 7 | |
| 8 | |
| 9 | def try_plot_offline(figs): |
| 10 | try: |
| 11 | from plotly.offline import iplot |
| 12 | from plotly.offline import init_notebook_mode |
| 13 | init_notebook_mode(connected=True) |
| 14 | except ImportError as e: |
| 15 | warn_msg = "To draw plots you should install plotly." |
| 16 | warnings.warn(warn_msg) |
| 17 | raise ImportError(str(e)) |
| 18 | if not isinstance(figs, list): |
| 19 | figs = [figs] |
| 20 | for fig in figs: |
| 21 | iplot(fig) |
| 22 | |
| 23 | |
| 24 | def save_plot_file(plot_file, plot_name, figs): |
no test coverage detected