[matplotlib-devel] logit scale for frequencies

2014-11-03 Thread Fabio Zanini
Dear all, I've been using matplotlib with great satisfaction for a few years, but one feature I've been missing is a "logit" scale. This is essentially a nonlinear scale that is log both towards 0+ and log towards 1-. It is useful when one has frequencies in a population (i.e. floats between 0 and

Re: [matplotlib-devel] logit scale for frequencies

2014-11-03 Thread Thomas Caswell
Please create a pull request. This sounds reasonable to me, but I have never seen a plot with that scale and don't really understand it from your description. Seeing the code usually clarifies things. Tom On Mon, Nov 3, 2014, 05:58 Fabio Zanini wrote: > Dear all, > > I've been using matplotlib

Re: [matplotlib-devel] logit scale for frequencies

2014-11-03 Thread Pierre Haessig
Hi Fabio, Le 03/11/2014 11:41, Fabio Zanini a écrit : > I've been using matplotlib with great satisfaction for a few years, but > one feature I've been missing is a "logit" scale. This is essentially a > nonlinear scale that is log both towards 0+ and log towards 1-. Nice coincidence, I was also

Re: [matplotlib-devel] logit scale for frequencies

2014-11-03 Thread Jens Nielsen
A pull request would be welcome. Note that we already have the symlog scale http://matplotlib.org/examples/pylab_examples/symlog_demo.html?highlight=symlog which is essentially a logscale with a linear fraction in the centre. As I understand this it is not quite the same but useful for a different

Re: [matplotlib-devel] logit scale for frequencies

2014-11-03 Thread Fabio Zanini
@Pierre: Yeah, my code looks 99% the same like yours. I'll make a PR starting from a mix of both - probably closer to yours than to mine :-P @Jens: symlog extends to infinity, logit has a compact range, that's why it's not exactly the same. Ok I'll make a pull request. Shall I start with a test t

Re: [matplotlib-devel] logit scale for frequencies

2014-11-03 Thread Fabio Zanini
Dear all, I made a pull request for this: #3753, at https://github.com/matplotlib/matplotlib/pull/3753 Cheers, Fabio On 11/03/2014 01:30 PM, Fabio Zanini wrote: > @Pierre: Yeah, my code looks 99% the same like yours. I'll make a PR > starting from a mix of both - probably closer to yours than t