Re: [matplotlib-devel] Adding interactivity to an histogram in SVG

2011-08-23 Thread David Huard
Mike, I forked your branch and created this one which includes the revised histogram example. https://github.com/huard/matplotlib/tree/interactive_svg Cheers David On Tue, Aug 23, 2011 at 1:37 PM, David Huard wrote: > On Tue, Aug 23, 2011 at 11:29 AM, Michael Droettboom wrote: >>

Re: [matplotlib-devel] Adding interactivity to an histogram in SVG

2011-08-23 Thread David Huard
On Tue, Aug 23, 2011 at 11:29 AM, Michael Droettboom wrote: > On 08/23/2011 10:06 AM, David Huard wrote: >> >> You may want to try moving the "" containing the clipPath up a >>> level, so it is a peer with the histogram rectangles. >> Yep, that works. &

Re: [matplotlib-devel] Adding interactivity to an histogram in SVG

2011-08-23 Thread David Huard
Hi Mike, Thanks for looking into this. On Mon, Aug 22, 2011 at 5:52 PM, Michael Droettboom wrote: > I'm tinkering with your example a little bit, but clicking on the legend > items doesn't seem to do anything whether it contains the offending clipPath > snippet or not. What version of matplotli

[matplotlib-devel] Adding interactivity to an histogram in SVG

2011-08-22 Thread David Huard
Hi, I'm trying to create an SVG figure that will show or hide the bars of a histogram when clicking on the element in the legend. I got to the point where it almost works... I'm including the script so that others can play with it, but from what I understand, the problem is that the first histogr

Re: [matplotlib-devel] weights in hist()

2008-11-10 Thread David Huard
Note that the weight argument was added to histogram in Numpy 1.1. David 2008/10/29 Olle EngdegÄrd <[EMAIL PROTECTED]> > > Hi, > > I attach a trivial patch to pass a weight argument through hist() to > histogram(). > > Cheers, > Olle >

Re: [matplotlib-devel] [Re]: kwarg "range" in hist

2008-10-21 Thread David Huard
On Tue, Oct 21, 2008 at 3:31 AM, Manuel Metz <[EMAIL PROTECTED]> wrote: > David Huard wrote: >> On Mon, Oct 20, 2008 at 10:19 AM, John Hunter <[EMAIL PROTECTED]> wrote: >>> On Mon, Oct 20, 2008 at 9:01 AM, David Huard <[EMAIL PROTECTED]> wrote: >>>

Re: [matplotlib-devel] [Re]: kwarg "range" in hist

2008-10-20 Thread David Huard
On Mon, Oct 20, 2008 at 10:19 AM, John Hunter <[EMAIL PROTECTED]> wrote: > On Mon, Oct 20, 2008 at 9:01 AM, David Huard <[EMAIL PROTECTED]> wrote: > >> I would oppose any change to histogram calling convention that does not >> fix a critical bug. I agree that using

Re: [matplotlib-devel] [Re]: kwarg "range" in hist

2008-10-20 Thread David Huard
On Sat, Oct 18, 2008 at 3:07 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Manuel Metz wrote: >> Please see the end of the mail for the important point !!! > > Thank you--I see you are way ahead of me on this. See comments below. >> >> Eric Firing wrote: >>> Manuel, >>> >>> Although it doesn't hurt

[matplotlib-devel] Bug in legend

2008-10-08 Thread David Huard
I just updated matplotlib from svn and here is traceback I get after calling legend with the pad argument: /usr/local/lib64/python2.5/site-packages/matplotlib/pyplot.pyc in legend(*args, **kwargs) 2390 def legend(*args, **kwargs): 2391 -> 2392 ret = gca().legend(*args, **kwargs) 2393

[matplotlib-devel] mpl and numpy ma branch

2008-01-23 Thread David Huard
Hi, calling show returns the following error using the numpy maskedarray branch. The figure is a quiver plot on a basemap instance. /usr/local/lib64/python2.5/site-packages/matplotlib/figure.pyc in draw(self, renderer) 696 697 # render the axes --> 698 for a in self.axes:

Re: [matplotlib-devel] Basemap toolkit: problem with polarplot example

2007-09-12 Thread David Huard
Jeff, all tests pass. Thanks again, David 2007/9/12, Jeff Whitaker <[EMAIL PROTECTED]>: > > David Huard wrote: > > Hi Jeff, > > > > Here is the output. Thanks for looking into this. > > > > > > In [1]: from matplotlib.toolkits.basemap import

[matplotlib-devel] Basemap toolkit: problem with polarplot example

2007-09-12 Thread David Huard
Hi, the pyproj package seems to cause a problem in the polarmap example of the basemap toolkit. Thanks, david [EMAIL PROTECTED]:~/svnrepos/toolkits/basemap/examples$ python polarmaps.py min/max etopo20 data: -9026.625 6228.8125 plotting North Polar Lambert Azimuthal Equal Area basemap ... plotti

[matplotlib-devel] Font weirdness

2007-08-13 Thread David Huard
Hi, I noticed a strange behavior and I'm not sure whether it is intended or not. With the usetex option set to True, the fonts used in ticklabels change when using a custom formatter. So for instance from pylab import * rcParams['text.usetex']=True s = subplot(111) s.xaxis.set_major_formatter(F

[matplotlib-devel] Bug with setp and clim

2007-01-26 Thread David Huard
Hi, unles I'm doing something stupid, setp is buggy. I'm creating a bunch of images using imshow and I want the colormap to be consistent among images. So once they're all drawn, I want to uniformize the color scale. But setp(ax.images, clim= [0,1]) does not work because it sets vmin to [0,1]

[matplotlib-devel] Bug with mappable

2007-01-24 Thread David Huard
Hi, this used to work a couple of months ago. In [1]: from pylab import * In [2]: mappable=cm.ScalarMappable(cmap=cm.jet) In [3]: mappable.set_array(array([0,1])) In [4]: cb=colorbar(mappable, orientation='horizontal') --

Re: [matplotlib-devel] Overlap with bar

2006-12-07 Thread David Huard
ing linewidth to zero automatically if edgecolor is None, so that the existing edgecolor kwarg can be used to achieve this result. And/or add a linewidth kwarg. Eric John Hunter wrote: >>>>>> "David" == David Huard <[EMAIL PROTECTED]> writes: > > David>

[matplotlib-devel] Overlap with bar

2006-12-07 Thread David Huard
Hi, When plotting a large amount of bars, like bar(arange(500), rand(500)) the bars seem to overlap and it produces a weird effect. My feeling is that the culprit is the contour line around each rectangle, who probably don't scale properly in this limit. In fact, the problem is maybe not so