Skip to content

[MNT]: hexbin upper-case C as keyword-argument #31239

@raphaelquast

Description

@raphaelquast

Summary

Hey, not sure if there is in fact an internal reason for this choice, but personally I find it odd
that plt.hexbin() uses a upper-case C as kwarg to assign custom values for aggregation in each bin.

def hexbin(self, x, y, C=None, gridsize=100, bins=None,

In contrast, plt.scatter uses a lower-case c to assign values to each datapoint.

def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,

Proposed fix

I believe it would be good in the long run to switch from upper-case C to lower-case c in plt.hexbin()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions