Skip to content

Need a way to check if an axis minor or major grid is on #19021

Open
@jklymak

Description

@jklymak

It appears we have no public interface to check whether the grid is on? Downstream libraries are now replacing the private self.xaxis._gridOnMinor with the private self.xaxis._minor_tick_kw["gridOn"], which seems even worse.

Seems we need self.xaxis.grid_on(which='minor') and self.xaxis.grid_on(which='major')?

Originally posted by @jklymak in #18769 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions