(self, *plottable, show_=True, **kwargs)
| 13 | class TestPlots(TestCase): |
| 14 | |
| 15 | def _test_plot(self, *plottable, show_=True, **kwargs): |
| 16 | fig = plot(*plottable, lib='matplotlib', **kwargs) |
| 17 | fig = fig.native() if isinstance(fig, Tensor) else fig |
| 18 | self.assertIsInstance(fig, plt.Figure) |
| 19 | fig = plot(*plottable, lib='plotly', **kwargs) |
| 20 | self.assertIsInstance(fig, plotly.graph_objs.Figure) |
| 21 | if show_: |
| 22 | show(lib='matplotlib') |
| 23 | show(lib='plotly') |
| 24 | |
| 25 | def test_bar_chart(self): |
| 26 | dim = instance(planets='Sun,Earth,Mars') |
no test coverage detected