Coverage for docs\source\examples\treemap.py: 0%

5 statements  

« prev     ^ index     » next       coverage.py v7.3.1, created at 2023-09-23 21:21 -0400

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