Skip to content

Why is _gci a private method? #4517

Closed
Closed
@mwaskom

Description

@mwaskom

I was trying to figure out how the plt.colorbar magic works to try and extend better support for colorbars in multi-panel seaborn figure objects. I figured out it all runs though the _gci methods on the figure and axes objects, which are very helpful. But why are they protected with a leading underscore? Is there a better way to generically apply a colorbar in an object-oriented context?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions