Re: [Matplotlib-users] Overlaying part of an matrix image on another.

2012-01-30 Thread Pål Gunnar Ellingsen
Hi Thank you very much, it worked perfectly :D Kind regards Pål On 27 January 2012 15:29, Tony Yu tsy...@gmail.com wrote: On Fri, Jan 27, 2012 at 9:13 AM, Pål Gunnar Ellingsen paa...@gmail.comwrote: Hi I have a array, M, which is (4Nx4M), and an array (image), im, which is NxM. I can

[Matplotlib-users] psd

2012-01-30 Thread David Craig
Hi I have some data for a 24hr period with a sample rate of 100 samples/second. I want to create a power spectrum using matplotlibs function psd. I want it to have 10 minute windows with a 50% overlap, but cant seem to get the syntax right. My code is as follows: NFFT = len(data) Fs = 100

Re: [Matplotlib-users] psd

2012-01-30 Thread Fabrice Silva
Le lundi 30 janvier 2012 à 11:45 +, David Craig a écrit : Hi I have some data for a 24hr period with a sample rate of 100 samples/second. I want to create a power spectrum using matplotlibs function psd. I want it to have 10 minute windows with a 50% overlap, but cant seem to get the

Re: [Matplotlib-users] psd

2012-01-30 Thread David Craig
Hi, thanks for that. I've made the following changes: NFFT = 100*60*10# Linked to window size Fs = stream[0].stats.sampling_rate win = np.hanning(NFFT) overlap = NFFT/2 power, freq = plt.psd(data, NFFT, Fs, win, overlap) but it returns the following error: Traceback (most recent call

Re: [Matplotlib-users] psd

2012-01-30 Thread Fabrice Silva
Le lundi 30 janvier 2012 à 13:34 +, David Craig a écrit : Hi, thanks for that. I've made the following changes: NFFT = 100*60*10# Linked to window size Fs = stream[0].stats.sampling_rate win = np.hanning(NFFT) overlap = NFFT/2 power, freq = plt.psd(data, NFFT, Fs, win, overlap)

Re: [Matplotlib-users] psd

2012-01-30 Thread Jerzy Karczmarczuk
David Craig : Hi, thanks for that. I've made the following changes: NFFT = 100*60*10# Linked to window size Fs = stream[0].stats.sampling_rate win = np.hanning(NFFT) overlap = NFFT/2 power, freq = plt.psd(data, NFFT, Fs, win, overlap) but it returns the following error:

[Matplotlib-users] How to keep only the x first terms of an array(numpy)?

2012-01-30 Thread Fabien Lafont
Hello, Do somebody knows how to keep only the x first terms of a numpy 1D array? like a = array([8,4,5,7,9]) function(a,2) [8,4] -- Try before you buy = See our experts in action! The most comprehensive online

Re: [Matplotlib-users] How to keep only the x first terms of an array(numpy)?

2012-01-30 Thread Robert Kern
On 1/30/12 3:50 PM, Fabien Lafont wrote: Hello, Do somebody knows how to keep only the x first terms of a numpy 1D array? like a = array([8,4,5,7,9]) function(a,2) [8,4] These questions belong on the numpy mailing list. You have already asked this question on scipy-user and received a

Re: [Matplotlib-users] no leading 0 on times from DateFormatter

2012-01-30 Thread C M
On Mon, Jan 30, 2012 at 12:32 PM, Daryl Herzmann akrh...@iastate.eduwrote: On Sun, Jan 29, 2012 at 10:10 PM, C M cmpyt...@gmail.com wrote: If I use the DateFormatter, like this: mydateformatter = I'll get dates like (note the time part): Nov 27 2011 03:00 PM Instead, I'd

Re: [Matplotlib-users] histogram plots color range

2012-01-30 Thread johanngoetz
nahren manuel wrote: Hello , I have a two dimensional array, 40X20(rowsXcolumns). Each of the 40 rows themselves hold values of the bins of a distribution (which is not always normal, can expect a bimodal curve as well) It is little difficult to explain to I actually created a sample

Re: [Matplotlib-users] Hardware rendering with tricontourf

2012-01-30 Thread Howard
Hi Nicolas Thanks for the post. I'm going to finish optimizing all of the non-rendering pieces of my code, then I'll see if trying the hardware rendering makes sense. Right now I am software rendering 3.5 million triangles in about 5 seconds, but the setup (masking etc) is taking about 40.

Re: [Matplotlib-users] Subplot x-tick labels overlap with each other and with titles

2012-01-30 Thread Tony Yu
On Sun, Jan 29, 2012 at 10:10 PM, C M cmpyt...@gmail.com wrote: On Wed, Jan 4, 2012 at 2:19 PM, Benjamin Root ben.r...@ou.edu wrote: On Wednesday, January 4, 2012, jeffsp jef...@gmail.com wrote: plt.tight_layout(), sweet it still makes the labels too close to read, even if they

[Matplotlib-users] Sampling a 3D plane to 2D data

2012-01-30 Thread Christoph Piefke
Hello everybody, I have a problem transferring from 3D data to a 2D representation. I used mayavi to define a cut plane through a volume data set and got the xyz coordinates for the points on the plane and the data at each point. Now I would like to make a contour plot of that data in