Re: [Matplotlib-users] Basemap drawcoastlines issue

2009-10-05 Thread Scott Sinclair
2009/10/1 ringobelingo ringobeli...@gmail.com: I would like to add coastlines to a map but do not want interior 'coastlines'. At present, without them my continents are not distinct enough from the data I am plotting in the background. But, when I draw them using drawcoastlines(), I also get

Re: [Matplotlib-users] Images and memory management

2009-10-05 Thread Leo Trottier
Hi, I think I've figured out what's going on. It's a combination of things: 1) iPython is ignorant of the problems associated with caching massive data output 2) iPython doesn't seem to have a good way to clear data from memory reliably (https://bugs.launchpad.net/ipython/+bug/412350) 3)

Re: [Matplotlib-users] Basemap drawcoastlines issue

2009-10-05 Thread Jeff Whitaker
Scott Sinclair wrote: 2009/10/1 ringobelingo ringobeli...@gmail.com: I would like to add coastlines to a map but do not want interior 'coastlines'. At present, without them my continents are not distinct enough from the data I am plotting in the background. But, when I draw them using

Re: [Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-05 Thread Christopher Barker
VáclavŠmilauer wrote: I checked the official terminology, it is a kernel average smoother (in the sense of [1]) with special weight function exp(-(x-x0)^2/const), operating on irregularly-spaced data in 2d. I am not sure if that is the same as what scipy.stats.kde.gaussian_kde does, the

[Matplotlib-users] error when installing matplotlib -- wx requirement?

2009-10-05 Thread per freem
hi all, i am trying to install the recent matplotlib (0.99.1.1) but i am getting an error about wxPython not being available. i thought wx is an optional backend? in any case i would not like to use it. is there a way to install matplotlib without? my command was: python setup.py install

[Matplotlib-users] Running on Windows 2008 server

2009-10-05 Thread Paul Hemans
Whenever I run the statement: from pylab import randn, hist OR import matplotlib.pyplot as plt Python crashes, no error ... nothing Running under Python 2.5 Any ideas?

[Matplotlib-users] Setting size of subplot

2009-10-05 Thread Donovan Parks
Hello, I am new to matplotlib and am having trouble understanding how to set the size of a subplot when a figure contains multiple subplots. In particular, I have been playing around with the scatter_hist.py demo at http://matplotlib.sourceforge.net/examples/axes_grid/scatter_hist.html. A

Re: [Matplotlib-users] Setting size of subplot

2009-10-05 Thread Chloe Lewis
You will probably want to add axes explicitly (not with subplot), e.g. fig.add_axes([.1,.1,.71,.8]) specifies the coordinates of one corner and the width and height (in proportions of the figure size). When doing this explicitly, you will probably need to do some extra adjustments to fit the

[Matplotlib-users] semilogy seems to only work once

2009-10-05 Thread Ross Anderson
Hi all, I'm making multiple semilogy histograms, which for now are on separate figures and not in subplots. Here's something patched together: def makehistogram(data,strtitle, filename): fig = Figure() pylab.hold(False) pylab.semilogy(base=10) n, bins, patches = pylab.hist(data,

Re: [Matplotlib-users] Setting size of subplot

2009-10-05 Thread Jae-Joon Lee
I just want to mention that axes size in mpl, by design, is supposed to be proportional to the figure size, so there could be cases when a fixed-sized axes messes up something. Furthermore, using axes_grid toolkit can be a bit tricky, so I (as an author of the axes_grid toolkit) personally do no

Re: [Matplotlib-users] semilogy seems to only work once

2009-10-05 Thread Jae-Joon Lee
with hold=False, the axes is reset whenever something new is added to the axes. Instead of using pylab.hold(False), clear the figure or axes explicitly (clf() or cla()) -JJ On Mon, Oct 5, 2009 at 9:58 PM, Ross Anderson rpander...@gmail.com wrote: Hi all, I'm making multiple semilogy

Re: [Matplotlib-users] saving images using pure matplotlib in Sage cuts off the bottom part (and produces corrupt file?)

2009-10-05 Thread jason-sage
Jae-Joon Lee wrote: As one of who never used Sage, I don't think I'll be any help here. Anyhow, can you tell us what kind of backed is used by default in the two environment? I mean the type of the canvas that is initially created. Thanks for following up on this. Is there an easy way to

Re: [Matplotlib-users] saving images using pure matplotlib in Sage cuts off the bottom part (and produces corrupt file?)

2009-10-05 Thread Jae-Joon Lee
On Mon, Oct 5, 2009 at 10:25 PM, jason-s...@creativetrax.com wrote: Jae-Joon Lee wrote: As one of who never used Sage, I don't think I'll be any help here. Anyhow, can you tell us what kind of backed is used by default in the two environment? I mean the type of the canvas that is initially

Re: [Matplotlib-users] saving images using pure matplotlib in Sage cuts off the bottom part (and produces corrupt file?)

2009-10-05 Thread jason-sage
Jae-Joon Lee wrote: On Mon, Oct 5, 2009 at 10:25 PM, jason-s...@creativetrax.com wrote: Jae-Joon Lee wrote: As one of who never used Sage, I don't think I'll be any help here. Anyhow, can you tell us what kind of backed is used by default in the two environment? I mean the type of

Re: [Matplotlib-users] unfilled scatter points

2009-10-05 Thread Scott Sinclair
2009/10/5 Ernest Adrogué eadro...@gmx.net: is it possible to draw unfilled scatter points? Yes, try the following import numpy as np import matplotlib.pyplot as plt x = np.random.rand(10) y = np.random.rand(10) plt.scatter(x, y, facecolor='none') plt.show() Also take a look at