mpl_toolkits.axisartist.axis_artist.GridlinesCollection

class mpl_toolkits.axisartist.axis_artist.GridlinesCollection(*args, which='major', axis='both', **kwargs) [source]

Bases: matplotlib.collections.LineCollection

Parameters:
which{"major", "minor"}
axis{"both", "x", "y"}
__init__(self, *args, which='major', axis='both', **kwargs) [source]
Parameters:
which{"major", "minor"}
axis{"both", "x", "y"}
__module__ = 'mpl_toolkits.axisartist.axis_artist'
draw(self, renderer) [source]

Draw the Artist (and its children) using the given renderer.

This has no effect if the artist is not visible (Artist.get_visible returns False).

Parameters:
rendererRendererBase subclass.

Notes

This method is overridden in the Artist subclasses.

set_axis(self, axis) [source]
set_grid_helper(self, grid_helper) [source]
set_which(self, which) [source]

Examples using mpl_toolkits.axisartist.axis_artist.GridlinesCollection

© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.4.1/api/_as_gen/mpl_toolkits.axisartist.axis_artist.GridlinesCollection.html