# How to draw proper chart of distributional tree?

I am using python with matplotlib and need to visualize distribution percentage of sub-groups of an data set.

imagine this tree:

Data --- group1 (40%)
-
--- group2 (25%)
-
--- group3 (35%)

group1 --- A (25%)
-
--- B (25%)
-
--- c (50%)


and it can go on, each group can have several sub-groups and same for each sub group.

How can i plot a proper chart for this info?

• Please post snippets of code that we can take a look at the way you are approaching this solution. – Danny Jul 10 at 10:59