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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users