MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_figure

Method test_figure

tests/test_bqplot.py:6–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class TestBqplot(unittest.TestCase):
6 def test_figure(self):
7 size = 100
8 scale = 100.0
9 np.random.seed(0)
10 x_data = np.arange(size)
11 y_data = np.cumsum(np.random.randn(size) * scale)
12 fig = plt.figure(title='First Example')
13 plt.plot(y_data)
14 fig.save_png()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected