It looks like the cumulative contribution only shows one side of the x-axis. This is ultimately fine usually because it drifts towards either -100 or 100, but if the first however many of the top_n words noticeably go in both directions, then some of their contributions won't be visible on the inset.
Related to this, add an option for the type of normalization. Whether it's cumulative or normalized percent contribution (i.e. normed by absolute value of sum or normed by sum of absolute values).
It looks like the cumulative contribution only shows one side of the x-axis. This is ultimately fine usually because it drifts towards either -100 or 100, but if the first however many of the
top_n
words noticeably go in both directions, then some of their contributions won't be visible on the inset.Related to this, add an option for the type of normalization. Whether it's cumulative or normalized percent contribution (i.e. normed by absolute value of sum or normed by sum of absolute values).