Python: How to find the slope of a graph drawn using matplotlib?
<p>Here is my code:</p>

<pre><code>import matplotlib.pyplot as plt
plt.loglog(length,time,'--')
</code></pre>

<p>where length and time are lists.</p>

<p>How do I find the slope of this graph?</p>
