laserson / squarify

Pure Python implementation of the squarify treemap layout algorithm
Other
297 stars 37 forks source link

change the fontsize #22

Closed dcc88888888 closed 4 years ago

dcc88888888 commented 4 years ago

is it possible to change the font size of label in every box based on its value?

laserson commented 4 years ago

You might be able to pass the proper arguments into text_kwargs. (See the docstring for plot.) Otherwise you'd probably have to manually set up a plotting function. See the one in the code for guidance:

https://github.com/laserson/squarify/blob/master/squarify/__init__.py#L177