Skip to content

Cannot access hexbin data when xscale='log' and yscale='log' are set. #18045

@mankoff

Description

@mankoff

Bug report

plt.hexbin([1,10,100],[1,10,100], mincnt=1).get_offsets()
plt.hexbin([1,10,100],[1,10,100], mincnt=1, xscale='log', yscale='log').get_offsets()

I've made a log-log hexbin plot and would like to access the points generated by hexbin so I can make a contour. I cannot access these points for two reasons:

  1. The documentation is incorrect and states that PolyCollection.get_offset() should be called, but it is PolyCollection.get_offsets() (note plural). See 1st bullet point under returns here https://matplotlib.org/3.3.0/api/_as_gen/matplotlib.pyplot.hexbin.html

  2. When I call get_offsets() if xscale='log' and yscale='log' are set, I only get array([[0., 0.]]) rather than the points.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy