MCPcopy Create free account
hub / github.com/spotify/chartify / test_heatmap

Method test_heatmap

tests/test_plots.py:50–56  ·  view source on GitHub ↗

Area plot tests

(self)

Source from the content-addressed store, hash-verified

48 )
49
50 def test_heatmap(self):
51 """Area plot tests"""
52 ch = chartify.Chart(x_axis_type="categorical", y_axis_type="categorical")
53 ch.plot.heatmap(self.data, x_column="category1", y_column="category2", color_column="values")
54 assert np.array_equal(chart_data(ch, "")["category1"], ["a", "a", "b", "b"])
55 assert np.array_equal(chart_data(ch, "")["category2"], ["1", "2", "1", "2"])
56 assert np.array_equal(chart_data(ch, "")["values"], [1.0, 2.0, 3.0, 4.0])
57
58
59class TestLine:

Callers

nothing calls this directly

Calls 2

chart_dataFunction · 0.85
heatmapMethod · 0.80

Tested by

no test coverage detected