[Matplotlib-users] getting the min and max values of an axis for plotting

2008-05-12 Thread Johann Cohen-Tanugi
hello, I have a function, which I am plotting. I want to add a line positioned at, say, the mean of the function, so I want to do plot([x,x],[y0,y1]). In order to get y0, and y1, my brute force trial and error browsing of the API lead me to :

[Matplotlib-users] [newb] batch processing

2008-05-12 Thread Neal Becker
To produce a batch of pdfs, I'm using: close () figure (1, figsize=(11,8)) ... savefig (open (whatever, 'w')) Works, but causes my display to flash, I think each time either close() or figure() is called (not sure which). Any better way?

Re: [Matplotlib-users] [newb] batch processing

2008-05-12 Thread Jouni K . Seppänen
Neal Becker [EMAIL PROTECTED] writes: To produce a batch of pdfs, I'm using: [...] Works, but causes my display to flash, I think each time either close() or figure() is called (not sure which). Any better way? To avoid opening a window at all, use a non-interactive backend by putting

Re: [Matplotlib-users] getting the min and max values of an axis for plotting

2008-05-12 Thread Jouni K . Seppänen
Johann Cohen-Tanugi [EMAIL PROTECTED] writes: I have a function, which I am plotting. I want to add a line positioned at, say, the mean of the function, so I want to do plot([x,x],[y0,y1]). Try axvline(x). -- Jouni K. Seppänen http://www.iki.fi/jks

[Matplotlib-users] tkinter segv under opensuse 10.3

2008-05-12 Thread Malte Marquarding
Hi, I had a look through the archives but couldn't find an answer to this. Using the tkagg backend (agg is fine) I get a segmentation fault doing a simple plot. gdb returns the following: 362 Point* ll_api() {return _ll;} Current language: auto; currently c++ (gdb) bt #0 0xb6fc1bac in

[Matplotlib-users] closing windows matplotlib and tkinter

2008-05-12 Thread KURT PETERS
I have a simple window to open a file that the data is then used to make a graph: The code for that part is: =code window = Tkinter.Tk() #window.withdraw() -- not sure what this does window.title('hello world') w = Tkinter.Label(window,text=hello, again) w.pack

Re: [Matplotlib-users] Non-linear Regression to a Histogram

2008-05-12 Thread Alan Jackson
I have an example of fitting distributions to bus arrival times using 'R' that may be helpful. I wanted to calculate the latest time I could arrive at the bus stop and have a better than 95% chance of catching the bus. I tend to use R and Scipy whereever each is strongest.