Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cannot access hexbin data whenxscale='log' andyscale='log' are set. #18045

Closed
@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 byhexbin so I can make a contour. I cannot access these points for two reasons:

  1. The documentation is incorrect and states thatPolyCollection.get_offset() should be called, but it isPolyCollection.get_offsets() (note plural). See 1st bullet point underreturns herehttps://matplotlib.org/3.3.0/api/_as_gen/matplotlib.pyplot.hexbin.html

  2. When I callget_offsets() ifxscale='log' andyscale='log' are set, I only getarray([[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


      [8]ページ先頭

      ©2009-2025 Movatter.jp