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

5 statements  

« prev     ^ index     » next       coverage.py v7.4.0, created at 2024-01-07 22:13 -0500

1"Treemap example" 

2# pylint: disable=unused-import, wrong-import-order 

3import plotly 

4from gpkit.interactive.plotting import treemap 

5from performance_modeling import M 

6 

7fig = treemap(M) 

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

9 

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

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