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

[Bug]: Hexbin gridsize interpreted differently for x and y #21349

Closed
Milestone
@timhoffm

Description

@timhoffm

Bug summary

gridsize results in 2x the expected number of elements in y-direction

Code for reproduction

importmatplotlib.pyplotaspltimportnumpyasnpnp.random.seed(19680801)n=100000x=np.random.standard_normal(n)y=2.0+3.0*x+4.0*np.random.standard_normal(n)fig,ax=plt.subplots(figsize=(6,6))h=ax.hexbin(x,y,gridsize=(10,10),marginals=True,reduce_C_function=np.sum)

Actual outcome

grafik

Expected outcome

grafik

This image was taken withgridsize=(10, 5) but should be the result ofgridsize=(10, 10).

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