How to zoom in a histogram in seaborn/matplotlib?
问题 I produced a histogram which looks something like this: Code that I used to produce this plot: sns.countplot(table.column_name) As you can notice, the entire histogram gets clustered at the left end due to uneven distribution of data. How do I zoom in at the left end? One way that I tried and it gave me a marginally better result was : plt.xlim(0,25) Is there a better way to do this? 回答1: Looks like the data would be better viewed on a logarithmic scale. On your matplotlib plot axis, ax , use