I'm plotting some tree maps using squarify.
I can't figure out how to define figsize
for them though, nor I can find anything in their docs. Below the working code:
df = df.groupby(feature)["profit"].sum()
squarify.plot(sizes=df, label=df.index, alpha=.8)
plt.axis('off')
plt.show()
I've tried to add figsize=(14, 6)
to squarify.plot
as you can see below, but didn't work.
squarify.plot(sizes=df, label=df.index, figsize=(14, 6), alpha=.8)
I appreciate the help.