Re: [Matplotlib-users] Cross-correlation?

2006-11-13 Thread Pierre GM
Ciao Sarah > cross_correlate, but given two arrays, that function returns a single > scalar value (whereas I was expecting a list of correlation > coefficients corresponding to how well the two signals match on > successive lags). That's not really a mpl question, more a 'numerix' one: what does y

[Matplotlib-users] Cross-correlation?

2006-11-13 Thread Sarah Mount
Hi y'all. I have two series of data, taken over a period of time and I want to know whether one set of data contains a signal similar to that in the other. I believe the way to do this is to use cross-correlation(*) and I notice that dir(pylab) now contains a function called cross_correlate, but g

Re: [Matplotlib-users] plotting overlapped histograms

2006-11-13 Thread Antonio Gonzalez
To compare two histograms you can plot a bihistogram as suggested on http://www.itl.nist.gov/div898/handbook/eda/section3/bihistog.htm The little function I've written to do so is below. See if it helps. Antonio import scipy from pylab import figure def bihist(y1, y2, nbins=10, h=None):

Re: [Matplotlib-users] Type Error

2006-11-13 Thread Eric Firing
Luca, It is a bug that appears when recent mpl is used with Numeric as opposed to numpy or numarray. It is fixed in svn. Your possible solutions are: 1) Use numpy or numarray instead of Numeric 2) Build mpl from svn 3) Edit axes.py as indicated in this diff chunk: @@ -1217,7 +1217,7 @@

[Matplotlib-users] plotting overlapped histograms

2006-11-13 Thread David E. Konerding
Hi folks, I'm interested in hearing some strategies for plotting two histograms on the same plot. My goal is to visualize and compare two distributions which have similar shapes. My first attempt was to use alpha, but this isn't well support on PS2 output driver (surprising) and I will be incl

Re: [Matplotlib-users] Type Error

2006-11-13 Thread Marius 't Hart
Try opening a python shell and type: from pylab import * a = [1,2,3] a What is a? Is it an array? Make sure you create an array by giving a command like this: a = array([1,2,3]) [EMAIL PROTECTED] schreef: > Hello I have installed matplotlib on su 10.0 > > when i do only this example > > from

Re: [Matplotlib-users] matplotlib and zope problem

2006-11-13 Thread John Hunter
> "Marek" == Marek Szczypiäski <[EMAIL PROTECTED]> writes: Marek> Hello All, I've been using matplotlib for some time now, Marek> and I want to connect it with zope. I'am using the example Marek> code from page: Marek> http://www.scipy.org/Cookbook/Matplotlib/Matplotlib_and_Zop

Re: [Matplotlib-users] Type Error

2006-11-13 Thread John Hunter
> "[EMAIL PROTECTED]" == [EMAIL PROTECTED] it <[EMAIL PROTECTED]> writes: [EMAIL PROTECTED]> Hello I have installed matplotlib on su 10.0 [EMAIL PROTECTED]> when i do only this example [EMAIL PROTECTED]> from pylab import * plot([1,2,3]) [EMAIL PROTECTED]> i get this error: o

[Matplotlib-users] Type Error

2006-11-13 Thread [EMAIL PROTECTED]
Hello I have installed matplotlib on su 10.0 when i do only this example from pylab import * plot([1,2,3]) i get this error: only length-1 attays can be converted to Python scalars. How i have made wrong? Regards Luca -- Mutui a tassi

[Matplotlib-users] matplotlib and zope problem

2006-11-13 Thread Marek Szczypiński
Hello All, I've been using matplotlib for some time now, and I want to connect it with zope. I'am using the example code from page: http://www.scipy.org/Cookbook/Matplotlib/Matplotlib_and_Zope , but whenever I try to import matplotlib, and/or pylab packages i get this error from zope: Error T

[Matplotlib-users] legend and errorbar

2006-11-13 Thread Jean-Luc Menut
Hello all, After some hour of fighting with, I've found that legend had some trouble when used with errobar because errorbar return a tuple. I know that is not a bug but I think it might be a good idea to write a warning about in the documentation (I mean at http://matplotlib.sourceforge.ne

[Matplotlib-users] Multiple Y axes

2006-11-13 Thread Senkel, Frank
Is there any way to have multiple y-axes (more than two). I’m looking to plot time series data and would like to overlay say four data sets each with its own independent axis.   Thank you.   Frank Internet Email Confidentiality Footer

[Matplotlib-users] segfault on pylab.close()

2006-11-13 Thread Taro Sato
Hi there. I have the following versions of numpy and matplotlib installed on Debian sarge: In [3]: matplotlib.__version__ Out[3]: '0.87.7' In [4]: numpy.__version__ Out[4]: '1.0.1.dev3422' Recent installations from SVN started giving me a segmentation fault error when I use pylab.close(). For

Re: [Matplotlib-users] default imshow extent

2006-11-13 Thread John Hunter
> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: Eric> Some discussion (and/or a ruling by John) is needed. My Eric> preference is that if a change is made, it be a change in Eric> basic default behavior, not additional options, because any Eric> non-default behavior can be

Re: [Matplotlib-users] ZeroDivisionError in scale_range

2006-11-13 Thread Steve Schmerler
W Netzberg wrote: > I aggree it doesn't make much sense, but that's what I got and attached > a plot to prove it! > Seems that some sort of rounding takes place, but only when I use > numpy.random.normal(). It is strange. Can you post a short working and not-working (i.e. chopping off) example?

Re: [Matplotlib-users] ZeroDivisionError in scale_range

2006-11-13 Thread Steve Schmerler
W Netzberg wrote: > I can't find a 0.87.5 rpm for fc5, might have to build it from source to > see if this behavior goes away... Seems to be related to numpy. If I > replace: > numpy.random.normal(-0.37727, 0.1, size=10) > with an array normal() returns, the problem goes away. Strange. Again >

Re: [Matplotlib-users] changing bar colors

2006-11-13 Thread Oguz Akyuz
Apparently it was simpler than I thought: bar (x, y, align='center', color=((0, 0, 0.5), (0, 0, 0.9), (0, 0, 0.5), (0, 0, 0.9), (0, 0, 0.5), (0, 0, 0.9), (0, 0, 0.5), (0, 0, 0.9), (0, 0, 0.5), (0, 0, 0.9))) does what I need. Cheers, Oguz On 11/13/06, Oguz Akyuz <[EMAIL PROTECTED]> wrote: > I wo

[Matplotlib-users] changing bar colors

2006-11-13 Thread Oguz Akyuz
I would like to plot a bar graph where subsequent bars have different colors (i.e. alternating colors). I think this will enhance the readability of my plot. How can I do this? Thanks, Oguz - Using Tomcat but need to do more