Skip to content

histogram2d / heatmap with z: separate color for empty bins #975

Closed

Description

@ajrouvoet

2d histograms with histfunc = avg|sum are useful for plotting measurements on irregular 2D grids.
The downside of this approach is that the representation of zero measurements collapses with e.g. n times a measurement of zero.

For these applications it would be useful if there was some way of either treating empty bins separately, or having the ability of setting a custom histfunc.

Activity

  1. etpinard commented on Sep 23, 2016

    @etpinard
    Contributor

    That would be really nice to allow for a special no-data color - even heatmap traces could benefit from it.

    In the meantime, here's a workaround: http://codepen.io/etpinard/pen/xVoJoj?

  2. added
    feature
    on Sep 23, 2016
  3. ajrouvoet commented on Sep 26, 2016

    @ajrouvoet
    Author

    If I were to implement this feature and submit a PR (assuming it wouldn't be too hard), what would be the timeline for it to end up in a release?

  4. etpinard commented on Sep 26, 2016

    @etpinard
    Contributor

    If I were to implement this feature and submit a PR [...] timeline for it to end up in a release

    The next minor release (v1.18.0) should be out in about 7 to 10 days. We usually make minor release (i.e. release that add features) every two weeks or so.

    (assuming it wouldn't be too hard)

    Adding this feature will be similar to and have to touch the same files as PR #868

  5. changed the title [-]histogram2d with z: separate color for empty bins[/-] [+]histogram2d / heatmap with z: separate color for empty bins[/+] on Oct 24, 2023
  6. gvwilson commented on Jun 5, 2024

    @gvwilson
    Contributor

    Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions