Ted Drain wrote:
I need to efficiently plot a set of x,y points where each point has a
different color. I tried multiple calls to plot() with a single point each
but that is way too slow. I switched to using scatter() and passing in a
list of colors which works great. However, I'd really
Thanks! I had originally just tried it (ignoring the docs) but my plot just
showed dots instead of markers for both 'x' and '+'. Then I read the docs
which seemed to indicate they wouldn't work.
Late last night I was digging through axes.py and noticed that they should
be supported (and I found
On Wed, 19 Mar 2008, Rich Shepard wrote:
When it runs in the test script the first curve is plotted in a
matplotlib window and the program pauses until I close that window by
clicking on the upper right button on the frame. Then this traceback is
displayed:
Update:
I stripped the
I've read the users guide and API (both as pdf and on the web site), and
do not see how to configure the axes for only left and bottom, and the grid
for only horizontal lines.
The axes(rect, w) is used to specify the position of the left and bottom
lines plus the width and height of the
On Thu, 20 Mar 2008, Rich Shepard wrote:
Clue appreciated.
Bingo! Found the problem.
The plotting functions are in a separate module, and each was developed
interactively using ipython, then copied into the module. As a result, each
function retained the show() command at the end, and
Rich Shepard wrote:
I've read the users guide and API (both as pdf and on the web site), and
do not see how to configure the axes for only left and bottom, and the grid
for only horizontal lines.
The axes(rect, w) is used to specify the position of the left and bottom
lines plus the
Hi All,I am using matplotlab to plot some figure. I would like to close the figure after show it 5 sec. My code is pasted below. However, I can not close the figure automatically. Can anyone help me to fix it?Thanks,Brook==import timefrom pylab import *from matplotlib
I think f = figure();
...
pylab.close(f);
should work.
--Mike
On Mar 20, 2008, at 2:14 PM, Fans Gnu wrote:
Hi All,
I am using matplotlab to plot some figure. I would like to close
the figure after show it 5 sec. My code is pasted below. However, I
can not close the figure automatically.
Hi Folks,
I'm having some trouble installing Matplotlib on a Macbook pro running Leopard.
I installed macpython 2.5.2, and I have numpy and scipy installed from
source for the 2.5.2 installation.
Compiling Matplotlib from source, or easy_installing the egg
Eric Firing wrote:
Both with respect to documentation and functionality, what you are
encountering is the historical aspect of masked arrays as a tacked-on
part of python numeric packages, and of matplotlib.
*sigh* I feel lucky ;-)
Support and
integration are improving, but still far
Giorgio F. Gilestro wrote:
import numpy as np
a = ['','','',1.1,2.2]
mask_a = [i == '' for i in a]
b = np.ma.MaskedArray(a, mask=mask_a)
Not very efficient, though, is it?
cheers,
Chris
--
Simplistix - Content Management, Zope Python Consulting
- http://www.simplistix.co.uk
Michael Droettboom wrote:
At least the Agg backend *looks* to be reasonably threadsafe -- there
are no obvious gotchas like global variables etc. Note, though, that
multithreading may not gain much in the way of performance since the
global interpreter lock is never released around
Eric Firing wrote:
In general, I don't think mpl is threadsafe at all; it uses global
variables, such as all the rc parameters, that could easily be modified
by one thread while being used by another.
Yep, I guessed as much, BFL it is then ;-)
I think that great care
would be needed if
Michael Droettboom wrote:
That's cool'n'all, but when is svn going to make it into a Windows
binary release? ;-)
I suspect your question is somewhat rhetorical, but... it will probably
be a while ;)
Why is that? Who cranks out the binary releases on Windows and what
compiler do they
Andrew Charles wrote:
Compiling Matplotlib from source, or easy_installing the egg
From the egg:
ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for
hmm -- odd, I wouldn't think the egg should be linked against what looks
like a macports libJPEG -- are you sure it isn't
Hi,
Hi Mike,thanks for your reply. I tried f=figure() and pylab.close(f),
but the figure can not be closed automatically. Seems that
time.sleep(3) doesn't be called until I close the figure manually.
Maybe try setting the figure's interactive property to on?
--
Chris
Can you give me a simple example to show how to set the figure's interactive property to on? I appreciate!--Brook--- On Fri, 3/21/08, Christopher Brown [EMAIL PROTECTED] wrote:From: Christopher Brown [EMAIL PROTECTED]Subject: Re: [Matplotlib-users] How to close the figure after show it?To: [EMAIL
Hi Brook,
FG Can you give me a simple example to show how to set the figure's
FG interactive property to on? I appreciate!
import pylab
pylab.ion()
--
Chris
-
This SF.net email is sponsored by: Microsoft
Defy all
Chris,
My 2c:
Your data is indexed in time, right ? Your x-axis is a date object ? Then use
scikits.timeseries
http://scipy.org/scipy/scikits/wiki/TimeSeries
That package was designed to take missing dates/data into account. That way,
you can plot your data with the gaps already taken into
I agree you are not using a universal build of python to compile matplotlib.
You cannot pass in the -arch i386 -arch ppc flags. Only pass the
architecture of your computer.
- Charlie
On Thu, Mar 20, 2008 at 7:13 PM, Christopher Barker [EMAIL PROTECTED]
wrote:
Andrew Charles wrote:
Compiling
Pierre,
I was interested in learning more about TimeSeries, and had a few
questions...
Your data is indexed in time, right ? Your x-axis is a date object ?
Just to be clear on the language: indexed in time means data for which
the x-axis is a series of dates, correct? But I am not sure what
Charlie Moad wrote:
I agree you are not using a universal build of python to compile
matplotlib. You cannot pass in the -arch i386 -arch ppc flags.
Only pass the architecture of your computer.
Actually, I think the OP IS using a universal python, thus both flags --
he isn't manually
22 matches
Mail list logo