Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-04 Thread ajdcds
Thank you Mike, Werner and Benjamin for the good, and very fast, support. Kind regards, Antonio -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42178.html Sent from the matplotlib - users mailing list archive at Nabble.co

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-03 Thread Benjamin Root
On Thu, Oct 3, 2013 at 9:22 AM, ajdcds wrote: > Benjamin, thank you very much for the tip! > > If I do > > import matplotlib > matplotlib.use("TkAgg") > > This is only valid for the current script that is running, the matplotlibrc > remains the same, right? > > Yes, that is correct. -

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-03 Thread ajdcds
Benjamin, thank you very much for the tip! If I do import matplotlib matplotlib.use("TkAgg") This is only valid for the current script that is running, the matplotlibrc remains the same, right? -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-w

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-03 Thread Benjamin Root
On Thu, Oct 3, 2013 at 6:35 AM, ajdcds wrote: > Sorry, of course it does not work, the import is incorrect! > > It should be > > import matplotlib as plt > plt.rcParams['backend'] = 'TkAgg' > > or simply > import matplotlib > matplotlib.rcParams['backend'] = 'TkAgg' > > Errr... no, don't do "impo

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-03 Thread ajdcds
Sorry, of course it does not work, the import is incorrect! It should be import matplotlib as plt plt.rcParams['backend'] = 'TkAgg' or simply import matplotlib matplotlib.rcParams['backend'] = 'TkAgg' -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-in

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-03 Thread ajdcds
We were able to find the difference when installing Matplotlib via Python(x,y) or as a separate package. The difference is on paramater /backend/ on /matplotlibrc/ file. /Python(x,y)-2.6.6.2.exe/ set the parameter to *Qt4Agg* /matplotlib-1.0.1.win32-py2.6.exe/ sets the parameter to *TKAgg* if back

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-03 Thread Werner F. Bruhin
Hi, On 03/10/2013 09:31, ajdcds wrote: > If doing > > c:\Python26\python.exe file.py > > Then the error is on import private files, stated on my first post as > /import / I didn't see a response from you on this: c:\Python26\python.exe from PyQt4.QtGui import QFormLayout Does this give an impor

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-03 Thread ajdcds
If doing c:\Python26\python.exe file.py Then the error is on import private files, stated on my first post as /import / -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42164.html Sent from the matplotlib - users mailing

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-02 Thread Werner F. Bruhin
Hi Antonio, (forgot to copy list - for archive) On 02/10/2013 17:05, António de Sousa wrote: Hi Werner, thank you for your reply. Yes, the path is C:\Python26\lib\ Can it be that the error message is coming from a different location? Meaning that there may be duplicate files (e.g. python rel

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-02 Thread ajdcds
No error message: >>> from PyQt4.QtGui import QFormLayout >>> -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42154.html Sent from the matplotlib - users mailing list archive at Nabble.com. -

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-02 Thread Michael Droettboom
It looks like the PyQt4 installation in python(x,y) is somehow broken. If you just open up the python(x, y) interpreter and type >>> from PyQt4.QtGui import QFormLayout or >>> from PyQt4 import QtGui what happens? If that fails too, I'd say the bug is in python(x, y) (or however PyQt4 got

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-02 Thread ajdcds
Hi Mike, thank you for your interest. If I replace the following statement on formlayout.py: /try: from PyQt4.QtGui import QFormLayout except ImportError: raise ImportError, "Warning: formlayout requires PyQt4 >v4.3"/ With this one: /from PyQt4.QtGui import QFormLayout/ The

Re: [Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-02 Thread Michael Droettboom
On 10/02/2013 05:35 AM, ajdcds wrote: > I have a system that has Python(x,y)-2.6.6.2.exe installed. > When running the script "file.py" the following error occurs: > > /Traceback (most recent call last): > File "file.py", line xx, in > import > File "includes\something.py", line 31, in >

[Matplotlib-users] Matplotlib installation with Python(x,y)

2013-10-02 Thread ajdcds
I have a system that has Python(x,y)-2.6.6.2.exe installed. When running the script "file.py" the following error occurs: /Traceback (most recent call last): File "file.py", line xx, in import File "includes\something.py", line 31, in import matplotlib.pyplot as plt File "C:\Pytho