Skip to content

Probability axes scales #4799

Closed
Closed
@phobson

Description

@phobson

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:

  1. build an embarrassingly small mpltoolkit, publicize it in the official MPL docs
  2. include it in matplotlib, wrap try/expcept ImportError around it, and declare scipy an "optional dependency" from now on (unlikely)
  3. 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

statplot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions