Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-11 Thread Michael Droettboom
Thanks for taking this on, Damon and Gökhan. Note this will need to create a different symlink (to dateutil_py3 instead) on Python 3. This means, of course, that it will be impossible to develop on both Python 2 and 3 simultaneously, but that's true of "setuptools' develop" in any event, so it

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-11 Thread Damon McDougall
On Thu, Oct 11, 2012 at 9:25 PM, Gökhan Sever wrote: > I am not sure about that technical detail, but it works fine here on my > Fedora 16 (x86_64) system. > > > On Thu, Oct 11, 2012 at 11:04 AM, Damon McDougall > wrote: >> >> >> >> On Thursday, October 11, 2012, Gökhan Sever wrote: >>> >>> >>> >

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-11 Thread Gökhan Sever
I am not sure about that technical detail, but it works fine here on my Fedora 16 (x86_64) system. On Thu, Oct 11, 2012 at 11:04 AM, Damon McDougall wrote: > > > On Thursday, October 11, 2012, Gökhan Sever wrote: > >> >> >> On Thu, Oct 11, 2012 at 3:49 AM, Damon McDougall < >> damon.mcdoug...@gm

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-11 Thread Damon McDougall
On Thursday, October 11, 2012, Gökhan Sever wrote: > > > On Thu, Oct 11, 2012 at 3:49 AM, Damon McDougall < > damon.mcdoug...@gmail.com 'damon.mcdoug...@gmail.com');>> wrote: > >> >> Gökhan, did you implement the symlink fix? If so, would you mind >> making a pull request out of it? I was just ab

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-11 Thread Gökhan Sever
On Thu, Oct 11, 2012 at 3:49 AM, Damon McDougall wrote: > > Gökhan, did you implement the symlink fix? If so, would you mind > making a pull request out of it? I was just about to look into doing > this, but if you've done it already that'd save us some effort rolling > out fixes for 1.2. > > Chee

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-11 Thread Damon McDougall
On Wed, Oct 10, 2012 at 3:09 PM, Michael Droettboom wrote: > I filed an issue for this. We should try to get the fix into 1.2.x > > https://github.com/matplotlib/matplotlib/issues/1354 > > Mike > > > On 10/10/2012 09:00 AM, Michael Droettboom wrote: > > I think this stack overflow question [1] so

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-10 Thread Gökhan Sever
setupegg.py develop is the easiest way for me to install the latest mpl and also ipython from the github repos. I see that your suggested symlink fix also resolves this issue. Thanks Mike for looking into this quickly. On Wed, Oct 10, 2012 at 7:09 AM, Michael Droettboom wrote: > I filed an i

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-10 Thread Michael Droettboom
I filed an issue for this. We should try to get the fix into 1.2.x https://github.com/matplotlib/matplotlib/issues/1354 Mike On 10/10/2012 09:00 AM, Michael Droettboom wrote: I think this stack overflow question [1] sort of sums up the problem -- setuptools develop is kind of a hack and only

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-10 Thread Michael Droettboom
I think this stack overflow question [1] sort of sums up the problem -- setuptools develop is kind of a hack and only really works if the source structure matches the installed structure. That used to be true of matplotlib, but installing different packages based on the Python version breaks t

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-10 Thread Michael Droettboom
This is related to using develop mode. I never use that (I use virtualenvs instead), so this doesn't get much testing. This seems to have broken when we started to ship separate versions of dateutil for python2 and python3. setuptools doesn't seem to like the fact that we rename dateutil_py2

[Matplotlib-users] Pylab import error due to dateutil

2012-10-09 Thread Gökhan Sever
Hello, With a fresh git clone git://github.com/matplotlib/matplotlib.git sudo python setupegg.py develop Starting ipython --pylab I get this error: .../matplotlib/lib/matplotlib/dates.py in () 120 import matplotlib.ticker as ticker 121 --> 122 from dateutil.rrule import rrule, MO, TU, W

Re: [Matplotlib-users] pylab mode with PySide 1.10 segfaults on Linux

2012-03-24 Thread Ray Osborn
I have a colleague experiencing similar issues. There seem to be known issues with PySide 1.1.0, e.g., http://bugs.pyside.org/show_bug.cgi?id=1119 I tried overriding the call to QApplication.setOverrideCursor(), which customizes the cursor within the Matplotlib navigation toolbar, but he then

[Matplotlib-users] pylab mode with PySide 1.10 segfaults on Linux

2012-03-24 Thread Wes McKinney
Has anyone had much luck with PySide + matplotlib 1.1.0+? With stock EPD 7.2 full on Ubuntu 10.04 which comes with PySide 1.1.0, a simple plot like plot(arange(10)) with IPython in pylab mode causes a segfault. Joy. Thanks, Wes -

[Matplotlib-users] pylab TclError: out of stack space - tkinter?

2012-03-08 Thread spey_skaddet
Hi, first time I'm posting here. I'm fairly new to using pylab, and I recently started using tkinter and the canvas widget, and I think I really messed something up! I'm running a pdsoft version Python 2.6.2 (r262:71600, Sep 24 2009, 11:47:14) on UNIX (AFS system - not by choice)! Some backg

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-25 Thread Andreas Matthias
Benjamin Root wrote: > On Sunday, September 25, 2011, Andreas Matthias > wrote: >> Paul Ivanov wrote: >> >>> On Sat, Sep 24, 2011 at 3:59 AM, Andreas Matthias >>> wrote: Hmm. I do not get a reversed list of axes. This is the output of the example code below: [, > ] [,

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-25 Thread Benjamin Root
On Sunday, September 25, 2011, Andreas Matthias wrote: > Paul Ivanov wrote: > >> On Sat, Sep 24, 2011 at 3:59 AM, Andreas Matthias >> wrote: >>> Hmm. I do not get a reversed list of axes. This is the output of >>> the example code below: >>> >>> [, ] >>> [, ] >> >> This doesn't seem right - for m

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-25 Thread Andreas Matthias
Paul Ivanov wrote: > On Sat, Sep 24, 2011 at 3:59 AM, Andreas Matthias > wrote: >> Hmm. I do not get a reversed list of axes. This is the output of >> the example code below: >> >> [, > object at 0x8f633ec>] >> [, > object at 0x8f633ec>] > > This doesn't seem right - for me that code results in

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-24 Thread Paul Ivanov
On Sat, Sep 24, 2011 at 3:59 AM, Andreas Matthias wrote: > Hmm. I do not get a reversed list of axes. This is the output of > the example code below: > > [, object at 0x8f633ec>] > [, object at 0x8f633ec>] This doesn't seem right - for me that code results in: [, ] [, ] can you try explicitly

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-24 Thread Andreas Matthias
Paul Ivanov wrote: > On Fri, Sep 23, 2011 at 2:08 PM, Andreas Matthias > wrote: >> In the following example the coordinates of the mouse >> cursor displayed in the pylab window belong to the >> second y-axis. But I would prefer to have the coordinates >> of the first y-axis to be displayed. Is th

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-23 Thread Paul Ivanov
Hi Andreas, On Fri, Sep 23, 2011 at 2:08 PM, Andreas Matthias wrote: > In the following example the coordinates of the mouse > cursor displayed in the pylab window belong to the > second y-axis. But I would prefer to have the coordinates > of the first y-axis to be displayed. Is this possible? y

[Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-23 Thread Andreas Matthias
In the following example the coordinates of the mouse cursor displayed in the pylab window belong to the second y-axis. But I would prefer to have the coordinates of the first y-axis to be displayed. Is this possible? import pylab as mpl mpl.plot([1,3,2]) mpl.twinx() mpl.plot([400,50,100]) mpl.s

Re: [Matplotlib-users] pylab collides with fmin?

2011-09-15 Thread Raymond Hawkins
Thanks. With this explanation I was able to get things to work. On Sep 14, 2011, at 12:41 PM, Benjamin Root wrote: > On Wed, Sep 14, 2011 at 2:17 PM, Raymond Hawkins > wrote: > I'm getting odd behavior when I try to use fmin and pylab in the same > program. The issue is illustrated in the code

Re: [Matplotlib-users] pylab collides with fmin?

2011-09-15 Thread Raymond Hawkins
Thanks. Removing the import of pylab and adding your suggested "import matplotlib.pyplot as plt" worked. On Sep 14, 2011, at 12:46 PM, Eric Firing wrote: > On 09/14/2011 09:17 AM, Raymond Hawkins wrote: >> I'm getting odd behavior when I try to use fmin and pylab in the same >> program. The iss

Re: [Matplotlib-users] pylab collides with fmin?

2011-09-14 Thread Eric Firing
On 09/14/2011 09:17 AM, Raymond Hawkins wrote: > I'm getting odd behavior when I try to use fmin and pylab in the same > program. The issue is illustrated in the code snippet below. As written, fmin > won't work: the "print xopt" simply returns the contents of x0 as assigned in > the line before

Re: [Matplotlib-users] pylab collides with fmin?

2011-09-14 Thread Benjamin Root
On Wed, Sep 14, 2011 at 2:17 PM, Raymond Hawkins wrote: > I'm getting odd behavior when I try to use fmin and pylab in the same > program. The issue is illustrated in the code snippet below. As written, > fmin won't work: the "print xopt" simply returns the contents of x0 as > assigned in the line

[Matplotlib-users] pylab collides with fmin?

2011-09-14 Thread Raymond Hawkins
I'm getting odd behavior when I try to use fmin and pylab in the same program. The issue is illustrated in the code snippet below. As written, fmin won't work: the "print xopt" simply returns the contents of x0 as assigned in the line before fmin. If the "from pylab import *" line is commented o

Re: [Matplotlib-users] pylab plot problem

2011-04-13 Thread Paul Ivanov
Hi Oğuz, Oğuz Yarımtepe, on 2011-04-13 23:09, wrote: > I didn't understand why i can not see 20 dots with the below command, > but i just see 3 dots at the graph. > a1 = N.ndarray(shape=(10,2))*2 When you allocate an array this way - you're just allocating space for it without initializing it t

[Matplotlib-users] pylab plot problem

2011-04-13 Thread Oğuz Yarımtepe
I didn't understand why i can not see 20 dots with the below command, but i just see 3 dots at the graph. import pylab as P import numpy as N a1 = N.ndarray(shape=(10,2))*2 x = a1[:,0] y = a1[:,1] a2 = N.ndarray(shape=(10,2))+10 xx = a2[:,0] yy = a2[:,1] n_x = N.append(x,xx) n_y = N.append(y,

Re: [Matplotlib-users] pylab

2010-11-26 Thread Benjamin Root
On Thursday, November 25, 2010, robert fujii wrote: > Hello - I am using python 2.6, numpy-1.3.0-win32- > > superpack-python2.6, > scipy-0.7.1-win32-superpack-python2.6, sympy-0.6.7.win32, > > matplotlib-1.0.0.win32-py2.6, > and brian-1.2.1.win32. > I would like to "import pylab" , however I get

[Matplotlib-users] pylab

2010-11-26 Thread robert fujii
Hello - I am using python 2.6, numpy-1.3.0-win32- superpack-python2.6, scipy-0.7.1-win32-superpack-python2.6, sympy-0.6.7.win32, matplotlib-1.0.0.win32-py2.6, and brian-1.2.1.win32. I would like to "import pylab" , however I get the following messages shown below. Any assistnce would be highly ap

Re: [Matplotlib-users] pylab (drag_pan )

2009-08-23 Thread marc desmarais
f, button, key, x, y):    ...    elif key=='x':     dy = 0     ... Marc Desmarais Long Beach, CA, 90814 --- On Wed, 8/12/09, Eric Firing wrote: From: Eric Firing Subject: Re: [Matplotlib-users] pylab To: "marc desmarais" Cc: "matplotlib-users" Date: Wednesday, A

Re: [Matplotlib-users] pylab

2009-08-12 Thread Eric Firing
usual in that one must explicitly "reply-to-all"; it is not automatic that one's reply goes to the list. Eric > > --- On *Mon, 8/10/09, Eric Firing //* wrote: > > > From: Eric Firing > Subject: Re: [Matplotlib-users] pylab > To: "marc des

Re: [Matplotlib-users] pylab

2009-08-11 Thread John Hunter
On Tue, Aug 11, 2009 at 12:28 PM, John [H2O] wrote: > > Just an thought regarding the whole PyLab concept... If you would like to frame this as a FAQ "Should I import * from pylab?" and post it as a rest svn diff against doc/faq/howto_faq.rst, I would be happy to include this on the website http:

Re: [Matplotlib-users] pylab

2009-08-11 Thread John [H2O]
Just an thought regarding the whole PyLab concept... >>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. [snip]... If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good i

Re: [Matplotlib-users] pylab

2009-08-11 Thread Tom K.
Sebastian Haase-3 wrote: > > Thanks for the info -- very informative -- maybe this post could be > somehow added or linked to from http://www.scipy.org/PyLab > > -- Sebastian Haase > Sebastian - I've done as you suggest... I added a link to this post on nabble - do you think there is a better

Re: [Matplotlib-users] pylab

2009-08-11 Thread Sebastian Haase
Thanks for the info -- very informative -- maybe this post could be somehow added or linked to from http://www.scipy.org/PyLab -- Sebastian Haase On Tue, Aug 11, 2009 at 4:22 AM, Eric Firing wrote: > marc desmarais wrote: >> Are there still two pylabs?  Are the following two web pages referring

Re: [Matplotlib-users] pylab

2009-08-10 Thread Eric Firing
marc desmarais wrote: > Are there still two pylabs? Are the following two web pages referring > to the same pylab? Not exactly: > This one is a vision or proposal, open for discussion: > http://www.scipy.org/PyLab This one is real: > http://matplotlib.sourceforge.net/ > The pylab interface t

[Matplotlib-users] pylab

2009-08-10 Thread marc desmarais
Are there still two pylabs?  Are the following two web pages referring to the same pylab? http://www.scipy.org/PyLab http://matplotlib.sourceforge.net/ I'm a bit confused (trying to get the Scipy, Numpy, Pylab, Matplolib story straight, before I plunge in) Marc Desmarais Long Beach, CA, 90814

[Matplotlib-users] Pylab ImportError after installing matplotlib from svn

2009-07-26 Thread M. Badawy
Hi, I'm running a Ubuntu 9.04 32bit on my laptop, and I believe that I have successfully built and installed matplotlib 0.98.6 from svn. The problem: when I try to import functions from pylab using the Python teminal I get the following error: == >>> from pylab import *

Re: [Matplotlib-users] Pylab causes crash if not given some idle time using raw_input()?

2009-06-10 Thread Wellenreuther, Gerd
Dear all, just noticed that the problem also happens with the raw_input - I guess I just closed the figure-windows during the raw_input-call. Closing the figures (either manually or with pylab.close()) prevents the crash, but I wonder why? Memory should not be an issue, python crashes when only

[Matplotlib-users] Pylab causes crash if not given some idle time using raw_input()?

2009-06-10 Thread Wellenreuther, Gerd
Dear all, I just again faced a problem appearing whenever I quickly generate multiple plots (using Windows XP, Python 2.5, matplotlib 0.98.1): > > pylab.ion() > for n in range(n_elements): > ##print > ##print element_symbols[n]+'-'+element_linegroup[n] > ##print normalized_mass_frac

Re: [Matplotlib-users] pylab quick reference? (

2009-04-23 Thread Gökhan SEVER
Works here. Don't know it's a browser issue or something related to your connection. Best to wait a reply from John Hunter. He might have it uploaded somewhere else. And yes developers knows a lot about their product then users. Wish there were more handy instructional videos -showing step-by-st

Re: [Matplotlib-users] pylab quick reference? (

2009-04-23 Thread Esmail
Jim Vickroy wrote: > > I have tried twice to watch this video and each time, after a lengthy > delay, a "server not found ..." message appears after I click on the > "play button". This happens in both Firefox 3 and IE7 on my MS Windows > XP Pro machine. Works here with XP Prof SP2 and Firefox

Re: [Matplotlib-users] pylab quick reference? (

2009-04-23 Thread Jim Vickroy
Esmail wrote: Selam to you too Gökhan, Gökhan SEVER wrote: What I recommend you is: watching John Hunter's video at Matplotlib by John D. Hunter . His introduction of matplotlib and examples he use could be very interesting to watch for you.

Re: [Matplotlib-users] pylab quick reference? (

2009-04-23 Thread Esmail
> There is no quick reference, though one would be handy. If you scroll > down to the bottom of the main page at > > http://matplotlib.sourceforge.net/index.html > > there is a summary of the pyplot plotting commands with links to the > full docs. You can at least see most everything that is

Re: [Matplotlib-users] pylab quick reference? (

2009-04-23 Thread Esmail
Selam to you too Gökhan, Gökhan SEVER wrote: > > What I recommend you is: watching John Hunter's video at Matplotlib by > John D. Hunter . His > introduction of matplotlib and examples he use could be very interesting > to watch for you. I just st

Re: [Matplotlib-users] pylab quick reference? (

2009-04-22 Thread John Hunter
On Wed, Apr 22, 2009 at 10:30 AM, Esmail wrote: > Hello all, > > Does anyone know of a quick reference for the various plotting > functions for pylab? I'm just getting started with this > after years of work with gnuplot. > > I found this > > http://matplotlib.sourceforge.net/api/pyplot_api.htm

Re: [Matplotlib-users] pylab quick reference? (

2009-04-22 Thread Gökhan SEVER
Selam Esmail, I do not think there is an easy way of learning matplotlib. (Nor there is a quick ref to make your life easier.) I have learnt mostly by using matplotlib for my homeworks ( while everyone using IDL or Matlab) --which is in my opinion has been best way to adapt myself into scientific

[Matplotlib-users] pylab quick reference? (

2009-04-22 Thread Esmail
Hello all, Does anyone know of a quick reference for the various plotting functions for pylab? I'm just getting started with this after years of work with gnuplot. I found this http://matplotlib.sourceforge.net/api/pyplot_api.html which is very comprehensive and would be good for digging int

Re: [Matplotlib-users] pylab-matplotlib-canvas-background-color change...

2009-03-17 Thread GKalman
John Hunter-4 wrote: > > On Mon, Mar 16, 2009 at 1:52 PM, GKalman wrote: > >> >> I need a reference to a "How to..." (or a sample code) to changing the >> color >> (Default or otherwise) of the Canvas, when plotting with matplotlib, >> using >> Python 2.5 on Windows. > > Thanks John, > > I

Re: [Matplotlib-users] pylab-matplotlib-canvas-background-color change...

2009-03-17 Thread John Hunter
On Mon, Mar 16, 2009 at 1:52 PM, GKalman wrote: > > I need a reference to a "How to..." (or a sample code) to changing the > color > (Default or otherwise) of the Canvas, when plotting with matplotlib, using > Python 2.5 on Windows. When creating your figure, just pass the facecolor you want

[Matplotlib-users] pylab-matplotlib-canvas-background-color change...

2009-03-17 Thread GKalman
I need a reference to a "How to..." (or a sample code) to changing the color (Default or otherwise) of the Canvas, when plotting with matplotlib, using Python 2.5 on Windows. -- View this message in context: http://www.nabble.com/pylab-matplotlib-canvas-background-color-change...-tp22541479p22

Re: [Matplotlib-users] pylab: xlim with xscale

2009-03-03 Thread Keoki Seu
On Mar 3, 2009, at 12:19 PM, Eric Firing wrote: > An argument could be made either way, but I think the present > behavior, in which autoscale_view is called after changing the > scale, will cause the least surprise in the majority of cases. The > default locator depends on the scale, and is

Re: [Matplotlib-users] pylab: xlim with xscale

2009-03-03 Thread Eric Firing
Keoki Seu wrote: > Greeting everyone, > In pylab (matplotlib 0.98.3.001 on Mac OS X) I've discovered that > changing the xscale from linear to log removes the previously set xlim. > > For example > In [1]: import pylab > In [2]: x = pylab.arange(100) > In [3]: y = pylab.sin(x) > In [4]: pylab.pl

[Matplotlib-users] pylab: xlim with xscale

2009-03-03 Thread Keoki Seu
Greeting everyone, In pylab (matplotlib 0.98.3.001 on Mac OS X) I've discovered that changing the xscale from linear to log removes the previously set xlim. For example In [1]: import pylab In [2]: x = pylab.arange(100) In [3]: y = pylab.sin(x) In [4]: pylab.plot(x, y) Out[4]: [] In [5]: pylab.x

Re: [Matplotlib-users] Pylab breaks locales with GTK

2009-01-05 Thread Lionel Roubeyrie
Thanks for your responses, Looking comments in the tickets, putting import locale locale.setlocale(locale.LC_NUMERIC, 'C') after the pylab import resolves the problem (but not the bug...). Have a happy new year Le lundi 05 janvier 2009 à 15:37 +0100, Lionel Roubeyrie a écrit : > Hi all, > Trying

Re: [Matplotlib-users] Pylab breaks locales with GTK

2009-01-05 Thread Michael Droettboom
It's a bug with PyGTK in that merely importing it sets the locale. But more seriously, it's also a bug in Numpy, in that its string formatting is dependent on locale (unlike standard floats in Python). See this Numpy bug: http://projects.scipy.org/scipy/numpy/ticket/902 * *and this mailing list

Re: [Matplotlib-users] Pylab breaks locales with GTK

2009-01-05 Thread David Cournapeau
Hi Ryan, Ryan May wrote: > Lionel Roubeyrie wrote: > >> Hi all, >> Trying to write to text files some plotted datas, we have a strange >> behavour on masked arrays after importing pylab, with the dot decimal >> separator replaced by a comma (but not all) : >> ## >>

Re: [Matplotlib-users] Pylab breaks locales with GTK

2009-01-05 Thread Michael Droettboom
This seems to be a bug (or at least inconsistent behavior) in numpy when the locale is set (which happens when gtk is imported -- replace 'import pylab' with 'import gtk' and you'll see the same behavior). We actually use a workaround for this in other parts of matplotlib, which is: for i in

Re: [Matplotlib-users] Pylab breaks locales with GTK

2009-01-05 Thread Ryan May
Lionel Roubeyrie wrote: > Hi all, > Trying to write to text files some plotted datas, we have a strange > behavour on masked arrays after importing pylab, with the dot decimal > separator replaced by a comma (but not all) : > ## > Python 2.5.2 (r252:60911, Oct 5 2008,

[Matplotlib-users] Pylab breaks locales with GTK

2009-01-05 Thread Lionel Roubeyrie
Hi all, Trying to write to text files some plotted datas, we have a strange behavour on masked arrays after importing pylab, with the dot decimal separator replaced by a comma (but not all) : ## Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) [GCC 4.3.2] on linux2 Typ

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-02 Thread John Hunter
On Tue, Dec 2, 2008 at 12:09 PM, Eric Emsellem <[EMAIL PROTECTED]> wrote: > Really annoying but as mentioned before, I cannot get a set of commands which > consistenly break the session, so... Since there does not appear to be an easy diagnosis or fix, you may want to consider switching your back

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-02 Thread Eric Emsellem
running the last ipython version now (0.9.1), and it does not help (got stuck the same way). The difference now is that ipython provides a message: Warning: Timeout for mainloop thread exceeded switching to nonthreaded mode (until mainloop wakes up again) It seems that ipython developers did cat

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-02 Thread Eric Emsellem
:08:00 +0100 >> From: Eric Emsellem <[EMAIL PROTECTED]> >> Subject: [Matplotlib-users] pylab or not... crashes or not >> >> - when I start a session with "ipython -pylab" I often get crashes >> with my >> session. When I mean "often", it me

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-02 Thread Yannick Copin
Salut Eric, > Date: Mon, 01 Dec 2008 20:08:00 +0100 > From: Eric Emsellem <[EMAIL PROTECTED]> > Subject: [Matplotlib-users] pylab or not... crashes or not > > - when I start a session with "ipython -pylab" I often get crashes with my > session. When I mean &

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-01 Thread Xavier Gnata
John Hunter wrote: > On Mon, Dec 1, 2008 at 1:08 PM, Eric Emsellem > <[EMAIL PROTECTED]> wrote: >> Hi >> >> this may be a known problem (didn't find anything on this issue) but here it >> is: >> >> - when I start a session with "ipython -pylab" I often get crashes with my >> session. When I mean "

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-01 Thread John Hunter
On Mon, Dec 1, 2008 at 1:08 PM, Eric Emsellem <[EMAIL PROTECTED]> wrote: > Hi > > this may be a known problem (didn't find anything on this issue) but here it > is: > > - when I start a session with "ipython -pylab" I often get crashes with my > session. When I mean "often", it means really often

[Matplotlib-users] pylab or not... crashes or not

2008-12-01 Thread Eric Emsellem
Hi this may be a known problem (didn't find anything on this issue) but here it is: - when I start a session with "ipython -pylab" I often get crashes with my session. When I mean "often", it means really often like once everything 1/2h or so. A crash means that the command I just sent gets stuck

[Matplotlib-users] pylab import problem

2008-10-30 Thread Andre Smit
FYI pylab fails to import on Windows Server 2008. I'm using the latest installs of numpy, scipy and matplotlib. >>> from pylab import * Traceback (most recent call last): File "", line 1, in File "C:\Python25\Lib\site-packages\pylab.py", line 1, in from matplotlib.pylab import

Re: [Matplotlib-users] pylab axis query and possible bug

2007-12-21 Thread Gary Ruben
Beautiful! Many thanks John. Gary R. John Hunter wrote: > You can manually turn off autoscaling on the axes instance with the > following, and both scatter and plot should then work as you want. > > ax1 = subplot(121) > axis('off') > ax1.imshow(rand(20,20)) > ax2 = subplot(122) > axis('off') >

Re: [Matplotlib-users] pylab axis query and possible bug

2007-12-21 Thread John Hunter
On Dec 21, 2007 11:50 AM, John Hunter <[EMAIL PROTECTED]> wrote: > On Dec 20, 2007 9:22 PM, Gary Ruben <[EMAIL PROTECTED]> wrote: > > Hi listees, > > > > I often generate plots using the pylab interface plot() function to > > overlay an imshow() image. The minimal script below demonstrates a > > pr

Re: [Matplotlib-users] pylab axis query and possible bug

2007-12-21 Thread John Hunter
On Dec 20, 2007 9:22 PM, Gary Ruben <[EMAIL PROTECTED]> wrote: > Hi listees, > > I often generate plots using the pylab interface plot() function to > overlay an imshow() image. The minimal script below demonstrates a > problem, which may be a bug, or may be a deliberate change introduced > into mp

[Matplotlib-users] pylab axis query and possible bug

2007-12-20 Thread Gary Ruben
Retrying. Sorry if this appears twice. Hi listees, I often generate plots using the pylab interface plot() function to overlay an imshow() image. The minimal script below demonstrates a problem, which may be a bug, or may be a deliberate change introduced into mpl 0.91.1. It works fine with mpl 0

[Matplotlib-users] pylab axis query and possible bug

2007-12-20 Thread Gary Ruben
Hi listees, I often generate plots using the pylab interface plot() function to overlay an imshow() image. The minimal script below demonstrates a problem, which may be a bug, or may be a deliberate change introduced into mpl 0.91.1. It works fine with mpl 0.90.1 but gives a traceback with 0.9

Re: [Matplotlib-users] pylab show()

2007-03-26 Thread Alan G Isaac
http://matplotlib.sourceforge.net/faq.html#SHOW hth, Alan Isaac - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business

[Matplotlib-users] pylab show()

2007-03-26 Thread Archana Ganesan
Hi, I am totally new to pylab. I have just started using it. So please excuse if my problem is too silly. I have an application that has creates different plots for different input parameters. I take in the input values and do a show(), This works perfectly fine. Now after performing some operat

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-19 Thread Ryan Krauss
Thanks to Ken and John, I think I am off and running. Nice work on wxmpl Ken! I think it fills a significant need. The two attached files show a ridiculously simple example of what I am planning to do. It may be completely obvoius to others. test_plot.py is an example of a module that can be

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-19 Thread Ryan Krauss
Sorry, I just googled wxmpl and found your page and am now downloading it. I may have a more intelligent question momentarily. You may ignore that part of my response. Ryan On 3/19/07, Ryan Krauss <[EMAIL PROTECTED]> wrote: > Thanks for your thoughts Ken. Sorry, I assumed a bit on the context

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-19 Thread Ken McIvor
Ryan, In my (limited) experience, it's dicey to mix pylab's plotting functionality and the OO API. I guess I'm a little unclear exactly what your use case is for this. It sounds like you're goal is to create a library of functions that operate on Figure instances, perhaps so you can use

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-19 Thread Ryan Krauss
I am learning the hard way that I don't know as much about matplotlib as I thought I did except for how to use pylab. I think I have managed to create a figure, add an axis, and plot something on it without pylab, but I don't know how to do the equivalent of show(). draw() needs a renderder and I

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-15 Thread Ryan Krauss
Thanks John. I know I have some clean up to do, I just want to do it right so it isn't an annual (or more often) thing On 3/15/07, John Hunter <[EMAIL PROTECTED]> wrote: > On 3/15/07, Ryan Krauss <[EMAIL PROTECTED]> wrote: > > > How should I be using matplotlib/pylab in my utility scripts so

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-15 Thread John Hunter
On 3/15/07, Ryan Krauss <[EMAIL PROTECTED]> wrote: > How should I be using matplotlib/pylab in my utility scripts so that > they are compatible with embedding in wx? A good rule of thumb is to never import pylab at the top level for modules that need to be imported. In my own code, I often do so

[Matplotlib-users] pylab vs. embedding in wx

2007-03-15 Thread Ryan Krauss
I have a problem that probably highlights a problem with how I normally use mpl vs. how I should use it. I have some utility scripts that do various data processing tasks and also have convenience functions for plotting data using pylab. Almost all of my scripts have a line like this near the top

[Matplotlib-users] pylab: figimage crashes

2007-03-08 Thread Uwe Schmitt
Hi, I have a problem. The following script crashes: from pylab import * a=arange(1500).reshape(50,30) figure() figimage(a) show() Python says: Traceback (most recent call last): File "crash.py", line 5, in ? figimage(a) File "c:\Python24\lib\site-packages\matplot

Re: [Matplotlib-users] pylab crashes python

2007-01-25 Thread Lou Pecora
I found an example script I got to work for WX. I guessed that the ws.app had to be deleted to plot again. Here it is (the part that runs the code and creates the WX.app: if __name__ == '__main__': app = wx.PySimpleApp(0) frame = PlotFigure() frame.plot_data() frame.Show() a

Re: [Matplotlib-users] pylab crashes python

2007-01-25 Thread Ken McIvor
Jan, What versions of wxPython and matplotlib are you using? Ken - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business to

[Matplotlib-users] pylab crashes python

2007-01-25 Thread Jan Winter
hi, I use python 2.4, matplotlib and WXpython on OS X. I plot and show something and every thing works fine (the plot is shown in the python.app). I close the plot window. I plot another thing. It is shown again with python.app, but now python.app crashes... every second plot causes a crash in

Re: [Matplotlib-users] pylab crashes python

2007-01-25 Thread Christopher Barker
Jan Winter wrote: > hi, > > I use python 2.4, matplotlib and WXpython on OS X. > > I plot and show something and every thing works fine (the plot is > shown in the python.app). > I close the plot window. > I plot another thing. > It is shown again with python.app, but now python.app crashes...

Re: [Matplotlib-users] pylab crashes python

2007-01-25 Thread Lou Pecora
Are you running the script again or plotting a second time in the same script? You might need to set matplotlib to plot interactively. See the documentaion about interactive plotting. You need to set the back end graphics to the right kind for interactive plotting. E.g. in .matplotlibrc backe

Re: [Matplotlib-users] pylab import problems

2006-12-26 Thread John Hunter
> "Steve" == Steve Kacenjar <[EMAIL PROTECTED]> writes: Steve> Just installed FC6 onto AMD 64 bit processor and have Steve> installed Python. I have also installed numpy and Steve> matplotlib however when I run IPython and begin importing Steve> items I run into a problem when

Re: [Matplotlib-users] pylab import problems

2006-12-26 Thread John Hunter
> "Steve" == Steve Kacenjar <[EMAIL PROTECTED]> writes: Steve> Just installed FC6 onto AMD 64 bit processor and have Steve> installed Python. I have also installed numpy and Steve> matplotlib however when I run IPython and begin importing Steve> items I run into a problem when

[Matplotlib-users] pylab import problems

2006-12-26 Thread Steve Kacenjar
Just installed FC6 onto AMD 64 bit processor and have installed Python. I have also installed numpy and matplotlib however when I run IPython and begin importing items I run into a problem when try to import pylab. Specifically I receive the following dump: In [3]: import pylab ---

Re: [Matplotlib-users] pylab/masked arrays issue on Intel Mac Pro

2006-11-27 Thread Pierre GM
Teemu > Any ideas where the conflict might be coming from? When you type from MA import *, you overwrite the definition of 'array'. And surprisingly enough, a masked array in numpy.core.ma is an object independent of ndarray. Some functions such as swapaxes are not imported by MA (because they

[Matplotlib-users] pylab/masked arrays issue on Intel Mac Pro

2006-11-27 Thread Teemu Rinne
Hi, I downloaded&installed matplotlib 0.87.7 and other binary packages from pythonmac.org for my new Intel Mac Pro. Then I downloaded and compiled the latest scipy package. My collection of packages runs ok otherwise but there seems to be something wrong with pylab/masked array behavior. This wor

[Matplotlib-users] pylab import error (backends related)

2006-10-08 Thread William Hunter
I posted this on scipy-user ML, then tried here and it bounced (?), so now I'm trying again. Sigh... OK, so I can't import pylab, but everything else (import numpy, scipy, matplotlib and gtk) works fine. These are installed: scipy.__version__ returns '0.5.1' numpy.__version__ returns '1.0rc1' ma

Re: [Matplotlib-users] Pylab window won't close

2006-09-15 Thread John Hunter
> "axel" == axel breuer <[EMAIL PROTECTED]> writes: axel> Hi, I run python + pylab in Linux. axel> When I type: import pylab pylab.plot([1,2,3]) axel> A window pops up but nothing is drawn in it (!?!). So I axel> type: pylab.draw() axel> The plot is then

[Matplotlib-users] Pylab window won't close

2006-09-15 Thread axel . breuer
Hi, I run python + pylab in Linux. When I type: >>> import pylab >>> pylab.plot([1,2,3]) A window pops up but nothing is drawn in it (!?!). So I type: >>> pylab.draw() The plot is then correctly drawn ( but I still do not see the lower buttons of the toolbar !?!) My problem is that I cannot clo

[Matplotlib-users] pylab runtime error

2006-09-05 Thread Matt
I had a quick question about the pylab package. When I use the plot function the first time, it works great. However, upon closing the window and plotting a second figure, I immediately get a microsoft visual c++ runtime error when trying to close or move this figure. If I plot one figure, and at

Re: [Matplotlib-users] pylab crashes simple wxPython script

2006-06-08 Thread Christian Meesters
On Thursday 08 June 2006 16:19, massimo sandal wrote: > Brian Blais ha scritto: > > I want to write a wxPython script to pull up pylab plots (in a separate > > window), based on menu or button choices. The script below crashes with > > a segmentation fault. Am I doing something wrong here? Is the

Re: [Matplotlib-users] pylab crashes simple wxPython script

2006-06-08 Thread massimo sandal
Brian Blais ha scritto: I want to write a wxPython script to pull up pylab plots (in a separate window), based on menu or button choices. The script below crashes with a segmentation fault. Am I doing something wrong here? Is there a workaround or fix? As far as I know, mixing wxpython and p

  1   2   >