Coverage for docs/source/examples/treemap.py: 100%
5 statements
« prev ^ index » next coverage.py v6.4.2, created at 2022-07-28 12:35 -0400
« prev ^ index » next coverage.py v6.4.2, created at 2022-07-28 12:35 -0400
1"Treemap example"
2import plotly # pylint: disable=unused-import
3from gpkit.interactive.plotting import treemap
4from performance_modeling import M
6fig = treemap(M)
7# plotly.offline.plot(fig, filename="treemap.html") # uncomment to show
9fig = treemap(M, itemize="constraints", sizebycount=True)
10# plotly.offline.plot(fig, filename="sizedtreemap.html") # uncomment to show