Coverage for docs/source/examples/ 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

5 statements  

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