Re: [Matplotlib-users] unfilled scatter points

2009-10-05 Thread Scott Sinclair
> 2009/10/5 Ernest Adrogué : > 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 http:/

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

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, 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 >> created. >> > > T

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 wa

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 wrote: > Hi all, > > I'm making multiple semilogy histograms, which for now

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 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, 50

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] 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 simplifi

[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] 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 --pref

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

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

2009-10-05 Thread Robert Kern
On 2009-10-05 15:54 PM, VáclavŠmilauer wrote: > I am not sure if that is the same as what scipy.stats.kde.gaussian_kde does, > the documentation is terse. Can I be enlightened here? gaussian_kde does kernel density estimation. While many of the intermediate computations are similar, they have en

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

2009-10-05 Thread VáclavŠmilauer
> >> about a year ago I developed for my own purposes a routine for averaging > >> irregularly-sampled data using gaussian average. > > > > is this similar to Kernel Density estimation? > > > > http://www.scipy.org/doc/api_docs/SciPy.stats.kde.gaussian_kde.html > > No. It is probably closer to ra

[Matplotlib-users] unfilled scatter points

2009-10-05 Thread Ernest Adrogué
hi, is it possible to draw unfilled scatter points? i want to use an unfilled 'o' marker with a dashed border to represent the 'expected' data, as opposed to the observed data. i can make the border dashed but haven't figured out how to make the marker not filled. any idea? thanks! -- Ernest --

[Matplotlib-users] move a line from one subplot to another

2009-10-05 Thread TP
Hi everybody, I try to move an instance of matplotlib.lines.Line2D from one subplot to another. How to do that? I have tried the following code, but the Line2D does not appear on the second subplot. Thanks in advance, Julien ### from pylab import * ion() f = figure() s = f.add_subp

Re: [Matplotlib-users] Images and memory management

2009-10-05 Thread Michael Droettboom
For some reason, my earlier reply didn't seem to make it to the mailing list. Here it is in its entirety: """ If you assign each figure to a new number, it will keep all of those figures around in memory (because pyplot thinks you may want to use it again.) The best route is to call close('a

Re: [Matplotlib-users] Basemap drawcoastlines issue

2009-10-05 Thread Jeff Whitaker
Scott Sinclair wrote: >> 2009/10/1 ringobelingo : >> 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

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) matplot