Re: [Matplotlib-users] Object Module is not callable, traceback

2009-11-29 Thread Eric Firing
Wayne Watson wrote: > Eric Firing wrote: >>> >>> I'm pretty new to this stuff, so what belongs where is sometimes >>> unclear. I'll check out the sourceforge tip. I didn't write the >>> program. I'm just trying to add some features. Changing the import >>> for matplotlib got the graphics window

Re: [Matplotlib-users] Object Module is not callable, traceback

2009-11-29 Thread Wayne Watson
Eric Firing wrote: >> >> I'm pretty new to this stuff, so what belongs where is sometimes >> unclear. I'll check out the sourceforge tip. I didn't write the >> program. I'm just trying to add some features. Changing the import >> for matplotlib got the graphics window up. >> import matplotli

Re: [Matplotlib-users] Object Module is not callable, traceback

2009-11-29 Thread Eric Firing
Wayne Watson wrote: > > Eric Firing wrote: >> Wayne Watson wrote: >>> I have a fairly large program that uses pylab and company. I want to >>> use the matplot histogram function. Here are the declarations at the >>> start. I added import matplotlib as mpl >>> -start >>> from

[Matplotlib-users] Fwd: A Simple Example of histogram Using Range?

2009-11-29 Thread Scott Sinclair
-- Forwarded message -- From: Scott Sinclair Date: 2009/11/30 Subject: Re: [Matplotlib-users] A Simple Example of histogram Using Range? To: Wayne Watson >2009/11/29 Wayne Watson : > So far matplotlib pretty much leaves the user on his own. Yes, there are > plenty of examples, b

Re: [Matplotlib-users] Object Module is not callable, traceback

2009-11-29 Thread Wayne Watson
Eric Firing wrote: > Wayne Watson wrote: >> I have a fairly large program that uses pylab and company. I want to >> use the matplot histogram function. Here are the declarations at the >> start. I added import matplotlib as mpl >> -start >> from Tkinter import * >> from nump

Re: [Matplotlib-users] quiver question

2009-11-29 Thread Alan G Isaac
On 11/29/2009 11:44 PM, Eric Firing wrote: > in svn there is such an option, but it still doesn't seem to > do exactly the right thing in this case OK, looking forward ... Thanks, Alan -- Let Crystal Reports handle the

Re: [Matplotlib-users] Object Module is not callable, traceback

2009-11-29 Thread Eric Firing
Wayne Watson wrote: > I have a fairly large program that uses pylab and company. I want to use > the matplot histogram function. Here are the declarations at the start. > I added import matplotlib as mpl > -start > from Tkinter import * > from numpy import * > import numpy > i

Re: [Matplotlib-users] quiver question

2009-11-29 Thread Eric Firing
Alan G Isaac wrote: > On 11/29/2009 12:10 PM, Eric Firing wrote: >> quiver(x[:-1], y[:-1], u, v, angles='xy', units='x', scale=1) >> > > That works perfectly when there is change only in x, > but not when both coordinates change. It seems like > I want a `units='xy'` option, to get the right > sc

[Matplotlib-users] Object Module is not callable, traceback

2009-11-29 Thread Wayne Watson
I have a fairly large program that uses pylab and company. I want to use the matplot histogram function. Here are the declarations at the start. I added import matplotlib as mpl -start from Tkinter import * from numpy import * import numpy import pylab import Image import Imag

Re: [Matplotlib-users] Arrows between points in a plot?

2009-11-29 Thread Michael Cohen
The arrows worked quite well, but I can't figure out how to curve them in a natural way, so they don't overlap. Also, how do I alter the breadth of the arrowhead, and to make it the same size along arrows of all lengths? Cheers, Mike Jose Gomez-Dans wrote: > Hi, > 2009/11/29 Michael Cohen mai

Re: [Matplotlib-users] A Simple Example of histogram Using Range?

2009-11-29 Thread Johan Grönqvist
Wayne Watson skrev: > So far matplotlib pretty much leaves the user on his own. Yes, there are > plenty of examples, but there seem to be no explanations about matters > like figure or show. No tutor on any of this I guess. Apparently, they > are leaving it up to one's MATLAB experience. It's been

Re: [Matplotlib-users] quiver question

2009-11-29 Thread Alan G Isaac
On 11/29/2009 12:10 PM, Eric Firing wrote: > quiver(x[:-1], y[:-1], u, v, angles='xy', units='x', scale=1) > That works perfectly when there is change only in x, but not when both coordinates change. It seems like I want a `units='xy'` option, to get the right scaling along each axis, but it does

Re: [Matplotlib-users] A Simple Example of histogram Using Range?

2009-11-29 Thread Wayne Watson
I'm on Win XP, and have no idea where the images went. I guess I'll have to search my C-disk. I just began the search. Looking at C:\Python25, I see no image files. Same with C:\Python25\Scripts If I put some code up front as below, the image comes up on my screen, but using a range of 0 to 8 and

Re: [Matplotlib-users] axis on top for barh plot

2009-11-29 Thread Mike Anderson
Hi! >> How can I put the bottom axis on top (or on top AND on bottom) for a barh >> plot? > It's somewhat counter-intuitive, but it can be done. > You have to create some "twin" axes with the "twiny" option, > then make the plot on the twin axes so it will use the > top axis. The bottom axis sti

Re: [Matplotlib-users] A Simple Example of histogram Using Range?

2009-11-29 Thread Johan Grönqvist
Wayne Watson skrev: > Anyway, where, folder, does your program write the files? I'm not > familiar with figure, but apparently using it produces some "canvas" > that plt.hist places it's output on. One can than save fig to a file. > What happens if I don't use figure? I just put a copy of the line

Re: [Matplotlib-users] quiver question

2009-11-29 Thread Eric Firing
Alan G Isaac wrote: > I have a collection of 2d points xy. > Instead of simply plotting the points, > I'd like to plot a collection of arrows > that goes from each point to the next. > The "from" is easy of course; > the "to" is the problem. > > I think I should be able to use quiver, > but I'm no

Re: [Matplotlib-users] A Simple Example of histogram Using Range?

2009-11-29 Thread Wayne Watson
Hi, this is an odd result. I copied your code and tried to execute it with Python 2.5. It came back with a socket area, and a reference to my firewall. Very strange. Ah, I happen to have a comm port open to another computer. Apparently Python didn't like that. Anyway, where, folder, does your prog

[Matplotlib-users] quiver question

2009-11-29 Thread Alan G Isaac
I have a collection of 2d points xy. Instead of simply plotting the points, I'd like to plot a collection of arrows that goes from each point to the next. The "from" is easy of course; the "to" is the problem. I think I should be able to use quiver, but I'm not getting it quite right. E.g., x,y =

Re: [Matplotlib-users] Arrows between points in a plot?

2009-11-29 Thread Jose Gomez-Dans
Hi, 2009/11/29 Michael Cohen > Hi all, > > I have a plot that has say 6 black X's, each separate, and 6 blue X's, > also separate, denoting where x's 1-6 have moved to (from black to blue). > Currently each point is plotted with a separate plot function. > I would like to generate a plot where ea

[Matplotlib-users] Customize/disable keyboard shortcuts

2009-11-29 Thread Jorge Scandaliaris
Hi, I have a strong preference to working with the keyboard instead of the mouse. Today I was working on a script to label a sequence of images (mark position and scale of a moving object). The default keyboard shortcuts are getting in my way, many keys are already used and moreover they are spread

Re: [Matplotlib-users] A Simple Example of histogram Using Range?

2009-11-29 Thread Johan Grönqvist
Wayne Watson skrev: > See Subject. I don't seem able to produce a simple example of using > histogram that uses range. I tried a variety of ranges, range=(0,22), > range=(0, 50.2), ... and I see no difference between any of the x values > scale. Can someone provide an example that shows how it w

Re: [Matplotlib-users] Arrows between points in a plot?

2009-11-29 Thread Gary Ruben
Hi Michael, Take a look at the quiver demo and the annotation2 demo More generally, have a look through the examples and gallery pages