Re: [Matplotlib-users] how do i get rid of the whitespace around this plot?

2009-08-28 Thread Craig
here's an example a call to pyplot.axis() after I call pcolor straightens it out though. thx gokhan, and sorry to all for not picking that up in the docs myself. and finally, `demolishor' is a great and hilarious song by a band called the acacia strain, in case there are parties interested in mus

[Matplotlib-users] SVG output: possible bug

2009-10-26 Thread Craig Lang
x27;t see any obvious fixes. Has anyone encountered this problem before and found a decent workaround? Thanks, Craig -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you

[Matplotlib-users] Licence Question

2010-05-17 Thread Craig Lyndon
please tell me under what conditions I can use matplotlib in a closed source application? Kind Regards, Craig -- ___ Matplotlib-users mailing list Matplotlib-users

[Matplotlib-users] Additional changes required to use wxmpl-1.2.9 with matplotlib-0.98.3

2008-11-21 Thread Craig Finch
s helps someone...if I'm doing something wrong, suggestions will be appreciated. Craig Finch --- ./wxmpl.py2008-11-21 13:03:02.0 -0500 +++ ./wxmpl_new.py2008-11-21 14:28:35.0 -0500 @@ -1203,7 +1203,8 @@ if doRepaint: self.gui_rep

[Matplotlib-users] Crash when trying to show a semilog or log-log plot

2009-02-22 Thread Craig Finch
message is a sample of the output. I had to cut it down because it's apparently stuck in a loop in pyparsing.py and keeps outputting the same repetitive message. Did I find a bug here? Any suggestions would be appreciated. Craig Sample o

Re: [Matplotlib-users] Crash when trying to show a semilog or log-log plot

2009-02-23 Thread Craig Finch
ng them. Thanks for your help. Craig - Original Message From: Michael Droettboom To: Craig Finch Cc: [email protected] Sent: Monday, February 23, 2009 9:49:06 AM Subject: Re: [Matplotlib-users] Crash when trying to show a semilog or log-log plot Strange. I am

[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 window=n

Re: [Matplotlib-users] psd

2012-01-30 Thread David Craig
an 30, 2012 at 12:13 PM, Fabrice Silva wrote: > 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

[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 th

[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 L

[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 produ

[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 yo

Re: [Matplotlib-users] specgram memory problem

2012-02-06 Thread David Craig
t;> 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?? >> &

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 wrote: > > > On Mon, Feb 6, 2012 at 11:59 AM, David Craig wrote: > >> I'm using a lenovo laptop with fedora 16. It h

[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 Skill

[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 und

[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 a

[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 n

[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 mpl_toolkits.ba

[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, anyon

[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 range(len(

[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. Following

[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 array's

Re: [Matplotlib-users] installing basemap

2012-04-03 Thread David Craig
: error: relink `libgeos_c.la' with the above command before installing it make[2]: *** [install-libLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/davcra/basemap-1.0.2/geos-3.3.1/capi' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/davcra/basemap-1.0.2/geos-3.3.1/ca

[Matplotlib-users] Problem using barbs function

2012-05-10 Thread David Craig
Hi, I'm having a problem using matplotlibs barbs function. I'm trying to plot some wind barbs on a map created with basemap. My code is as follows, m = Basemap(llcrnrlon=-35.0,llcrnrlat=40.0,urcrnrlon=10.0,urcrnrlat=68.0, resolution='i',projection='lcc',lon_0=-12.5,lat_0=5

[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 method?

[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, which

[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 way

[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 tu

[Matplotlib-users] Matplotlib 0.99.3 win32 py2.6 crashes on import

2010-05-31 Thread Craig McQueen
matches c:\python26\li b\site-packages\matplotlib\transforms.py import matplotlib.transforms # precompiled from c:\python26\lib\site-packages\ma tplotlib\transforms.pyc matplotlib-0.99.1.win32-py2.6.exe worked fine on this PC. Regards, Craig McQueen

Re: [Matplotlib-users] Matplotlib 0.99.3 win32 py2.6 crashes on import

2010-05-31 Thread Craig McQueen
Christoph Gohlke wrote: > > On 5/31/2010 1:53 AM, Craig McQueen wrote: >> I just installed matplotlib-0.99.3.win32-py2.6.exe on this Win2000 PC. >> When I try: >> from matplotlib import pyplot as plt >> >> it crashes Python with an apparent NULL-pointer r

[Matplotlib-users] Memory Usage

2010-08-15 Thread Craig Lyndon
oints directly from a file? Thanks for your help. Craig -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/R

[Matplotlib-users] Problem with GTK backends after compiling matplotlib

2011-08-30 Thread Craig Finch
I successfully built Python 2.7.2, NumPy 1.61, and Scipy 0.9.0 in my home directory on a Centos5 system.  I am trying to build matplotlib 1.0.1 in my home directory, but I am having a problem with the GTK backends.  I also built pycairo 1.2.2, pygobject 2.14.2, and pygtk 2.10.6 in my home direct

Re: [Matplotlib-users] Problem with GTK backends after compiling matplotlib

2011-08-31 Thread Craig Finch
ib.delaunay'] running install running build running build_py ... There are no errors in the rest of the build or install logs.  Further, I rebuild pycairo, pygtk, and matplotlib just to make sure one of them wasn't missing a freetype dependency.  Unfortunately, I am still getting exactly

Re: [Matplotlib-users] Problem with GTK backends after compiling matplotlib

2011-08-31 Thread Craig Finch
k; I just had to get everything in the same location.  This is the first I've heard of installing anything in a .local directory...why is that even an option??? Thanks for your help! ____ From: Craig Finch To: Eric Firing ; "[email protected].

[Matplotlib-users] 1d weighted histogram with log y-axis not colored correctly

2010-03-11 Thread Craig the Demolishor
Hi folks, Lately I've been working with some data that is too copious to fit in memory, so I've had to write a wrapper for pyplot.hist that bins the data in chunks and then draws it like so: pyplot.hist(x_edges, bins=100, weights=bin_contents, histtype='stepfilled', facecolor='g') However,

[Matplotlib-users] Closing matplotlib window in osx

2009-03-09 Thread Craig D Stewart
t one that adds precious seconds to each dev. cycle. Any suggestions on how to fix this? Craig Stewart PhD Research Student Negotiated Interaction Department of Computing Science University of Glasgow Glasgow G128QQ Scotlan

[Matplotlib-users] use legend's 'best' location for a text box

2012-01-11 Thread Craig the Demolishor
imple call to pyplot.text(), like so: ax.text(0.05, 0.95, 'Entries: ' + len(myData), transform=ax.transAxes, fontsize=14, verticalalignment='top', bbox=dict(boxstyle='square&

Re: [Matplotlib-users] trouble with show() not drawing in interactive mode w/ WxAgg

2012-09-26 Thread Craig the Demolishor
So I rebuilt Python so that I would have Tkinter support, and using TkAgg I get the behavior I want, so it's not mission critical to me to figure this out anymore. But if anyone is interested in tracking it down I will be glad to help. On Wed, Sep 26, 2012 at 8:06 AM, Craig the Demolishor

[Matplotlib-users] Sphinx plot extension source/build directory issues

2010-06-08 Thread Craig and Natalie McQueen
esn't work well with this option, because: 1) I think the "pyplot" directory should be under the "source" directory. But I had to put it one level up from the "source" directory otherwise it wouldn't be found. 2) When I try to build, I get error message