Description
I've got a fairly general and battle-tested probability scale implemented here:
https://github.com/Geosyntec/wqio/blob/master/wqio/utils/probscale.py
I think it'd be a generally useful addition to the matplotlib ecosystem. I say ecosystem because it depends on scipy and matplotlib has a policy of not depending on scipy.
I see a few possible paths:
- build an embarrassingly small mpltoolkit, publicize it in the official MPL docs
- include it in matplotlib, wrap
try/expcept ImportError
around it, and declare scipy an "optional dependency" from now on (unlikely) - see if seaborn/ggplot want it.
Option 1
Pro: we release it whenever, libraries supporting old versions of MPL can use it right away
Con: it seems like a lot of overhead for something so small.
Option 2
Pro: Once it's in, it's in and people have it
Con: I don't want to open the floodgates of optional dependencies.
Option 3
Pro: those libraries are pretty agile and will be able to adapt/tweak to suit their needs
Con: I think probability scales are generally useful and shouldn't have to be re-implemented in every mpl-based module that might want them (especially in libs like stats-models).
Any thoughts?
Attn: @tacaswell @mwaskom @glamp