Coverage for docs/source/examples/treemap.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.4.0, created at 2024-01-03 16:49 -0500

1"Treemap example" 

2import plotly # pylint: disable=unused-import 

3from gpkit.interactive.plotting import treemap 

4from performance_modeling import M 

5 

6fig = treemap(M) 

7# plotly.offline.plot(fig, filename="treemap.html") # uncomment to show 

8 

9fig = treemap(M, itemize="constraints", sizebycount=True) 

10# plotly.offline.plot(fig, filename="sizedtreemap.html") # uncomment to show