|
From: Christoph G. <cg...@uc...> - 2012-06-30 19:39:48
|
On 6/30/2012 11:45 AM, Youbao Zhang wrote:
> Dear all,
>
> I successfully installed Python 3.2.3 + Numpy 1.6.2 + Matplotlib 1.2.x
> (Git version). I tried the following command sequence line by line:
>
> huskier@SqueezeVM0:~/Programming/Python/Python-3.2.3$ python3.2
> Python 3.2.3 (default, Jun 30 2012, 07:14:35)
> [GCC 4.4.5] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> *>>> import matplotlib.pyplot as plt*
> *>>> plt.plot(range(10), range(10))*
> [<matplotlib.lines.Line2D object at 0x3c6f1d0>]
> *>>> plt.show()*
>>>>
>
> However, nothing happens when I typed plt.show(). There should be a
> figure window which I can get using python 2.6.
>
> I do not know what's wrong with my installation. OR matplotlib cannot be
> used with python 3? Any ideas?
>
> Best regards,
>
> Simon
>
Did you create a `setup.cfg` file and enable `backend = TkAgg` before
building matplotlib? Otherwise add a `import
matplotlib;matplotlib.use("TkAgg")` statement at the top of the script.
Christoph
|