laserson / squarify

Pure Python implementation of the squarify treemap layout algorithm
Other
293 stars 36 forks source link

Allow passing matplotlib.colormap to plot() #12

Closed nityeshaga closed 5 years ago

nityeshaga commented 6 years ago

It will be useful if the user could pass a colormap of his/her choice when plotting.

It seems like it could be done with a simple change around line 134. I'll be happy to make a PR. Is that okay?

laserson commented 6 years ago

Definitely!

laserson commented 5 years ago

Closing this since it has become inactive. Note that you can pass in a list of colors into the plot command, so colors can be precomputed.