Closed angelaheumann closed 5 years ago
Thanks for the contribution! One thing I am hesitant about is that you specially call out labelsize
but there are potentially many properties that one would want to set. I see three alternatives that might be more general:
kwargs
into ax.text
as well. I am not certain, but I suspect this will not cause any problems with the ax.bar
. Then you can pass whatever properties you want.plot
function that will be passed into the ax.text
function call.plot
function is somewhat of a convenience. If you look at the code, you'll see it's quite easy to generate your own plot. You could also consider just calling the MPL API directly to generate your plots.Any ideas?
My preference would be to go for option 2. Instead of the plot
function taking **kwargs
, you can have it take bar_kwargs=None
and text_kwargs=None
.
-> Updated
Tested:
Thanks for the contribution, @angelaheumann!!
Based on
https://stackoverflow.com/questions/40207784/how-to-edit-the-label-font-sizes-on-building-a-treemap-with-squarify-in-python/53590473#53590473
I would suggest allowing to pass the size of the labels.