Re: [matplotlib-devel] hist() with log and step

2010-08-04 Thread Olle Engdegård
2010/6/15 Olle Engdegård : > The autoscaling might need a small fix for > > hist(rand(100),bins=20,histtype="step",log=1) I just had a look at trunk (8623), and the lower y-limit looks good now. The above problem was at rev 8475. But an old, different, bug has turne

[matplotlib-devel] hist() with log and step

2010-06-15 Thread Olle Engdegård
Hi, The autoscaling might need a small fix for hist(rand(100),bins=20,histtype="step",log=1) Cheers, Olle -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to th

[matplotlib-devel] verticalalignment for titles

2010-06-07 Thread Olle Engdegård
Hi, When "baseline" recently became the default for text(), it's no longer possible to have two-line titles, title("First line\nSecond Line), without adding va="bottom". It would be nice if title() somehow could have "bottom" as default. Cheers, Olle -

[matplotlib-devel] hist() bug in log-scale with "stepfilled"

2010-01-22 Thread Olle Engdegård
Hi, Combining "stepfilled" with log scale sometimes gives inappropriate plots: a=[4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5] hist(a, range=(0,10), bins=10, histtype="stepfilled", log=True) The problem is not restricted to the case here with more bins than unique elements, but sometimes reducing the bin

Re: [matplotlib-devel] Bug in xlim or savefig or hist?

2009-02-19 Thread Olle Engdegård
On Thu, 19 Feb 2009, Michael Droettboom wrote: > The drawing and then clipping is normal behavior. All of the backend formats > have the ability to clip out arbitrary regions for drawing, so we take > advantage of that rather than doing our own geometric clipping algorithm. > The latter is a

Re: [matplotlib-devel] Bug in xlim or savefig or hist?

2009-02-19 Thread Olle Engdegård
works here) Mike Michael Droettboom wrote: I see it with 0.98.5.x, but not with SVN trunk. I'll look into this further and see what I can determine. Mike Olle Engdegård wrote: On Wed, 18 Feb 2009, Joshua Lippai wrote: Interesting. I can't reproduce your result using either the

Re: [matplotlib-devel] Bug in xlim or savefig or hist?

2009-02-18 Thread Olle Engdegård
On Wed, 18 Feb 2009, Joshua Lippai wrote: > Interesting. I can't reproduce your result using either the MacOSX or > WXAgg backend. Which backend are you using, and does the problem > persist if you use a different one? Hmm, I see it in at least WXAgg, WX, GTKAgg ... /Olle --

[matplotlib-devel] Bug in xlim or savefig or hist?

2009-02-18 Thread Olle Engdegård
Doing from pylab import * x=normal(10, size=1000) hist(x) xlim(0,10) savefig("Image.svg") and then importing the file to Inkscape and saving it there as a pdf gives the attached result. The stuff right of x=10 is suddenly there. The weirdest thing is that Inkscape _does not see this overspill

[matplotlib-devel] weights in hist()

2008-10-29 Thread Olle Engdegård
Hi, I attach a trivial patch to pass a weight argument through hist() to histogram(). Cheers, Olle--- axes.py (revision 6329) +++ axes.py (working copy) @@ -6221,13 +6221,13 @@ def hist(self, x, bins=10, range=None, normed=False, cumulative=False, bottom=None, histtype='b

Re: [matplotlib-devel] linestyle in patches

2008-06-23 Thread Olle Engdegård
On Fri, 20 Jun 2008, John Hunter wrote: On Thu, Jun 19, 2008 at 11:52 AM, Olle Engdegård <[EMAIL PROTECTED]> wrote: Here is a patch to add linestyles to patches.py. I have tried it with unfilled step histograms (important for b/w print and colour blind people). I'm happy to i

[matplotlib-devel] linestyle in patches

2008-06-19 Thread Olle Engdegård
Here is a patch to add linestyles to patches.py. I have tried it with unfilled step histograms (important for b/w print and colour blind people). What do you think? Cheers, OlleIndex: patches.py === --- patches.py (revision 5595

[matplotlib-devel] hist() sort of broken in trunk

2008-06-19 Thread Olle Engdegård
hist(histtype="step") worked fine in rev5412, but in the latest I get >>> hist(randn(1000), histtype="step") Traceback (most recent call last): /.../ raise TypeError, 'There is no patch property "%s"'%key TypeError: There is no patch property "closed" Changing closed = kwargs.get('closed',

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

[matplotlib-devel] more hist() suggestions

2008-06-04 Thread Olle Engdegård
Hi, Some more thoughts about hist(): A "range" parameter should be added and used in histogram() A new histogram should get a new colour, just like plot() does The "step" type should default to fill=False Actually, personally I hardly ever use bar histograms at all, so if step-mode (unfilled)

[matplotlib-devel] log in hist() and toggling

2008-05-24 Thread Olle Engdegård
Hi, I very much miss the 'l' shortcut for toggling log/lin y-scale in the trunk! I use it a lot. I suggest restoring it with something like if self.get_yscale() is ("log" or "linear"): self.toggle_log_lineary() else: pass I think most of time most people use log or linear scales. The new