How to get the x and y intercept in matplotlib?
<p>I have scoured the internet and can't find a python command to find the x and y intercepts of a curve on matplotlib. Is there a command that exists? or is there a much easier way that is going over my head? Any help would be appreciated. Thanks, </p>

<p>Nimrodian.</p>

<p>Use this. Much faster:</p>

<pre><code>slope, intercept = np.polyfit(x, y, 1)
</code></pre>

python matplotlib