matplotlib. legend for one curve
<p>I am trying to make a label for a curve</p>

<pre><code>plt.plot([1,2],[1,8])
plt.legend("some text")
plt.show()
</code></pre>

<p>However, there is only one first letter of my text in the graph:
<a href="http://i.stack.imgur.com/rXHsf.png" rel="nofollow"><img src="http://i.stack.imgur.com/rXHsf.png" alt="enter image description here"></a> </p>

<p>What am I doing wrong?</p>

<p><code>
plt.plot([1,2],[1,8], label="some text")
plt.legend()
plt.show()</code></p>

python matplotlib plot label