[Matplotlib-users] Fwd:

2013-01-05 Thread David Craig
http://smallshop.lt/gbwpmas.php -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video

[Matplotlib-users] histogran2d and polar axis

2012-11-21 Thread David Craig
Hi, This one has been driving me crazy all day. I have three vectors, azimuth, frequency and power, which I would like to histogram and plot on a polar axis. I can plot a scatter plot this

[Matplotlib-users] ginput with undefined number of points

2012-06-07 Thread David Craig
Hi, I trying to define an area in a pcolor plot (several plots) using the ginput(). However since it is an irregular shape and will be different in each plot so I cant define how many points there will be before hand, I've tried the following but it requires a double click at each point,

[Matplotlib-users] basemap and fill_between()

2012-05-13 Thread David Craig
Hi, I'm having a problem usinf fill_between() with basemap. I plot two great circles and want to shade the region between them. My code is below, it doesnt give any error just creates the plot without filling the area. Does anyone know if it's possible to do this or should I try a different

Re: [Matplotlib-users] installing basemap

2012-04-03 Thread David Craig
-3.3.1/capi' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/davcra/basemap-1.0.2/geos-3.3.1/capi' make: *** [install-recursive] Error 1 any ideas?? thanks D On 3/31/12 5:48 AM, David Craig wrote: Hi, I previously installed basemap by using the yum command. This installed

[Matplotlib-users] trouble with pcolor

2012-04-01 Thread David Craig
Hi, I am trying to use pcolor to visualise three variables. For example if I have a value for z at x and a value for z at y something like [x1, x2, x3] = [z1, z2, z3] and [y1, y2, y3] = [z2, z1, z3]. Then I use meshgrid to create the grid for x and y, X, Y = meshgrid(x, y) the result is two

[Matplotlib-users] installing basemap

2012-03-31 Thread David Craig
Hi, I previously installed basemap by using the yum command. This installed version 0.99.4. I want to install the latest version so I can use shaded relief etc. This may be more of a linux problem but as I am more familiar with python than linux I thought someone here may be able to help.

[Matplotlib-users] Problem using plot_surface.

2012-03-23 Thread David Craig
Hi, I have three variables I would like to plot using plot_surface but I keep getting the error given at the bottom. Anyone know what I am doing wrong?? My code is as follows, fig3 = plt.figure() ax = Axes3D(fig3) X = np.zeros((78,1)) Y = np.zeros((78,1)) Z = np.zeros((78,1)) for p in

[Matplotlib-users] 3d plotting

2012-03-18 Thread David Craig
Hi, I'm using surface_plot to view the results of solving the 2d wave equation. It works fine (code is below) except I would like to add a color bar and fix the limits on the vertical axis. When I add the color bar a new one is added in every iteration instead of overwriting the previous one,

[Matplotlib-users] draw lines in basemap

2012-02-29 Thread David Craig
Hi, I'm trying to produce a map with 12 locations marked on it and straight lines plotted between each point and all other points on the map. I have the map with the locations ok but am having trouble getting the lines. My code is below anyone know how to do this?? Thanks D from

[Matplotlib-users] basemap problem

2012-02-26 Thread David Craig
Hi, I recently installed basemap and python imaging library on my laptop. I have an i686 machine with fedora 16 on it. I just tried some test plots and basemap seems to work fine but according to the documentation to use the bluemarble(), etopo(), shadedrelief() and warpimage() instance methods I

[Matplotlib-users] surface plot

2012-02-23 Thread David Craig
Hi, I have an array defined by 3 variables p(x,z,t). I would like to produce a surface plot with colors defined by p and animate it. That is plot the value of p at all x and z, over time (t). My code to get p is below but I really have no idea how to plot this. Anyone know the best way to go

[Matplotlib-users] x-axis ticks and labels

2012-02-09 Thread David Craig
Hi, I am trying to relabel the x-axis on a plot. I want it to have 10 evenly spaced labels ranging from 274 at zero to 283 at one increment short of the axis. My code is as follows: im.axes.xaxis.set_major_locator(py.MaxNLocator(10)) im.axes.xaxis.set_ticklabels(range(274,284)) My

[Matplotlib-users] add a single x tick label

2012-02-08 Thread David Craig
Hi, I have a plot of a time series and I would like to add a single extra tick mark and label to the plot in a different color to the already existing tick marks. Is this possible?? Thanks, D -- Keep Your Developer

[Matplotlib-users] Change xaxis labels

2012-02-06 Thread David Craig
Hi, I have a plot and the xaxis shows number of seconds after a start point. I would like to convert them to days anyone know how to do this. I have looked at the documentation but cant find what I need. -- Try before

Re: [Matplotlib-users] specgram memory problem

2012-02-06 Thread David Craig
: Le vendredi 03 février 2012 à 17:39 +, David Craig a écrit : sure how to get it to plot the outputs from specgram. I use specgram as follows, Pxx, freqs, bins, im = plt.specgram(..) what am I trying imshow?? plt.specgram computes the spectrogram and when calls

Re: [Matplotlib-users] specgram memory problem

2012-02-06 Thread David Craig
uname -a gives, Linux David 3.2.2-1.fc16.i686 #1 SMP Thu Jan 26 03:38:31 UTC 2012 i686 i686 i386 GNU/Linux On Mon, Feb 6, 2012 at 6:07 PM, Benjamin Root ben.r...@ou.edu wrote: On Mon, Feb 6, 2012 at 11:59 AM, David Craig dcdavem...@gmail.com wrote: I'm using a lenovo laptop with fedora 16

[Matplotlib-users] specgram memory problem

2012-02-03 Thread David Craig
Hi, I am using matplotlib to produce some spectrograms for seismic data. I am looking at a 10 day period with a sample rate of 20sps. I would like to have my spectrogram to be composed of 10 minute windows with an overlap of 90%. However when I try and run my script I run out of memory. I can

[Matplotlib-users] specgram

2012-02-01 Thread David Craig
Hi, I am trying to produce a spectrogram for my data set and am having an issue with the color map. My data is filtered between 0.02 and 1.0Hz, but specgram() produces an image in the range 0 to 10Hz. Also the color map is not set properly. I would like to have it so the colormap ranges from

[Matplotlib-users] seconds to julian time

2012-02-01 Thread David Craig
Hi, I have a plot that covers a 10 day period on its x-axis in seconds. I would like to change it to julian days, is this possible with matplotlib and if so how do I do it?? D -- Keep Your Developer Skills Current with

[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 David Craig
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 syntax right