SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] logit scale for frequencies

From: Fabio Z. <fab...@tu...> - 2014年11月03日 12:30:39
Attachments: smime.p7s
@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 that fails, then
add the function and show it succeeds? or shall I start directly with
the code and add a test later on?
Cheers,
Fabio
On 11/03/2014 12:58 PM, Thomas Caswell wrote:
> 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 <fab...@tu...
> <mailto:fab...@tu...>> wrote:
> 
> 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 1) and both rare events and very common ones are interesting.
> 
> For instance, say you ask about the fraction of people with blue eyes in
> various world populations, you want to spot even tiny deviations from
> zero or one.
> 
> I have coded a scale according to matplotlib's documentation and it
> works well, so I was wondering whether you are interested into merging
> it into the the main repository. I think it'd be useful because lots of
> people have such frequency data, especially now that matplotlib is
> becoming popular in the biology/social sciences research communities.
> 
> If there is interest, I'll just start a pull request on github and try
> to adapt the code to your coding style. It's already PEP8 and similia.
> 
> Thanks. Cheers,
> Fabio
> 
> ------------------------------__------------------------------__------------------
> _________________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.__sourceforge.net
> <mailto:Mat...@li...>
> https://lists.sourceforge.net/__lists/listinfo/matplotlib-__devel
> <https://lists.sourceforge.net/lists/listinfo/matplotlib-devel>
> 

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /