laserson / squarify

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

Variable text options #23

Closed pescap closed 4 years ago

pescap commented 4 years ago

Dear all, Is there a way to adapt the "fontsize" parameter for labels as a function of boxes sizes?

pescap commented 4 years ago

Example: Captura de pantalla 2020-07-09 a la(s) 14 07 41

pescap commented 4 years ago

It could be interesting to have such an "automatic" variable size setting.

laserson commented 4 years ago

You can see how the plot is constructed here from relatively simple matplotlib calls. It probably isn't too difficult to implement this in your own app.