python - matplotlib - segmentation fault with figsize
<p>I don't understand why if I uncomment line 3 of the following code</p>

<pre><code>from matplotlib import pyplot

pyplot.clf()
#pyplot.figure(figsize=(400, 200))
pyplot.plot(range(0,len(x)),x,label="x")
pyplot.legend(loc='best', fancybox=True, shadow=True)
pyplot.savefig("/home/user/ooo.png", dpi=600)
</code></pre>

<p>I get a Segmentation fault (core dumped) error. Does anyone know how to fix this?</p>