Re: [matplotlib-devel] [Fwd: Re: [Matplotlib-users] missing lines on graph with upgrade to 0.98.0]

2008-06-06 Thread Manuel Metz
Michael Droettboom wrote: > I've gone ahead and fixed this in the Polygon patch. As you point out, > if someone wants an open polygon, they can use PathPatch, and Polygon > was never able to do that before anyway. > > Cheers, > Mike Hi Mike, 1) I think that there is a bug in the patch: xy is

Re: [matplotlib-devel] mathtext error

2008-06-06 Thread Michael Droettboom
Hmm... Can't reproduce this here. Maybe it's Python 2.4-specific (which I don't have). As a workaround, does replacing line 216 with: ParseFatalException.__init__(self, pe.pstr, pe.loc, pe.msg, pe.parserElement) work? Mike John Hunter wrote: > I'm getting an error with a mathtext string

Re: [matplotlib-devel] latex pngs in docs

2008-06-06 Thread Michael Droettboom
Not hard, I don't think. The following will give you a FT2Image object of the expression: from matplotlib.mathtext import MathTextParser mathtext_parser = MathTextParser("Bitmap") ftimage = mathtext_parser.parse(r"$x^i$", 150) From the FT2Image, you can get an rgba buffer, and the width and th

Re: [matplotlib-devel] [Fwd: Re: [Matplotlib-users] missing lines on graph with upgrade to 0.98.0]

2008-06-06 Thread Michael Droettboom
Thanks. I have fixed 1), and added a "closed" kwarg to fill() and Polygon.__init__() (which defaults to True to mimic behavior of 0.91 and earlier). hist() has been updated to call fill() with closed=False. Cheers, Mike Manuel Metz wrote: > Michael Droettboom wrote: >> I've gone ahead and fix

Re: [matplotlib-devel] RegularPolyCollection inputs incollections_demo.py are wrong?

2008-06-06 Thread Stan West
Quoting John Hunter: > Alternatively you can connect to the figure dpi_changed event -- there is > an example in Axes.cla Regarding that example, each call to Axes.cla connects a new dpi_changed callback, but, as far as I can tell, the callback is never disconnected. Thus, each cla call augments

Re: [matplotlib-devel] RegularPolyCollection inputs incollections_demo.py are wrong?

2008-06-06 Thread Michael Droettboom
You're absolutely right that it needs to be fixed. However, I wonder why the CallbackRegistry doesn't just store the callbacks in a set (or keys of a dictionary) such that multiple adds of the exact same function or method to the same signal couldn't occur. Since there is no external state sto

Re: [matplotlib-devel] [Fwd: Re: [Matplotlib-users] missing lines on graph with upgrade to 0.98.0]

2008-06-06 Thread Manuel Metz
Michael Droettboom wrote: > Thanks. I have fixed 1), and added a "closed" kwarg to fill() and > Polygon.__init__() (which defaults to True to mimic behavior of 0.91 and > earlier). hist() has been updated to call fill() with closed=False. > > Cheers, > Mike Great - thanks. So, I committed a p

Re: [matplotlib-devel] more hist() suggestions

2008-06-06 Thread Manuel Metz
Olle EngdegÄrd wrote: > Hi, > > Some more thoughts about hist(): > > A "range" parameter should be added and used in histogram() Hi Olle, what do you mean by "range" parameter. What should this parameter actually do ? I just committed a patch to the trunk that adds the features as you a

Re: [matplotlib-devel] RegularPolyCollection inputs incollections_demo.py are wrong?

2008-06-06 Thread Stan West
I've not studied or used the CallbackRegistry, so I've got nothing to add on that front. However, may I submit the attached work-around for Axes.cla? Instead of offsetting the title using Affine2D().translate( ... figure.dpi ... ), it uses ScaledTranslation( ... figure.dpi_scale_trans ...). This

Re: [matplotlib-devel] RegularPolyCollection inputs incollections_demo.py are wrong?

2008-06-06 Thread Michael Droettboom
Stan West wrote: > I've not studied or used the CallbackRegistry, so I've got nothing to add on > that front. However, may I submit the attached work-around for Axes.cla? > Instead of offsetting the title using Affine2D().translate( ... figure.dpi > ... ), it uses ScaledTranslation( ... figure.dpi

Re: [matplotlib-devel] more hist() suggestions

2008-06-06 Thread Olle EngdegÄrd
> what do you mean by "range" parameter. What should this parameter actually > do ? > Actually just pass it along to numpy.histogram(). I guess it just ignores all data outside the range. Cheers, Olle - Check out the new