setting distances between (labels, values)
<p>I have to mention that I am a beginner by dealing with data frames, and I  am grateful for any tips :)</p>

<p>I have a dataframe contains names of files and their sizes (~8000 records). I am trying to figure out which bunch of files can be deleted or moved. so I tried to plot names vs. size.</p>

<p><strong>the problem:</strong></p>

<p>The labels and (most probably the lines are also overlapping, even when i used <code>linewidth</code> property)</p>

<p>basically, the code I used</p>

<pre><code>&gt;&gt;&gt; g = sns.barplot(y='size',x='files',data=df)
&gt;&gt;&gt; for item in g.get_xticklabels():
...     item.set_rotation(45)
</code></pre>

<p>the resuls
<a href="http://i.stack.imgur.com/mXL9c.png" rel="nofollow"><img src="http://i.stack.imgur.com/mXL9c.png" alt="enter image description here"></a></p>

<p>the code with the <code>linewidth</code> property on samller sample </p>

<pre><code>&gt;&gt;&gt; g = sns.barplot(y='size',x='files',data=dfs, linewidth=2)
&gt;&gt;&gt; for item in g.get_xticklabels():
...     item.set_rotation(90)
</code></pre>

<p>the result
<a href="http://i.stack.imgur.com/1ff1p.png" rel="nofollow"><img src="http://i.stack.imgur.com/1ff1p.png" alt="enter image description here"></a></p>

<p>I am using python3.5 and OS 10.11.6</p>

<p>As I said in the comments, I don't think a graph is the best way to do this. I would start by simplifying the dataframe to get the average size of each file:</p>

<pre><code>average_size = df.groupby('files')['size'].mean()
</code></pre>

<p>You can then get the top 10 files (for instance) with:</p>

<pre><code>average_size.nlargest(10, columns='size')
</code></pre>

python database pandas seaborn