@@ -2790,7 +2790,7 @@ def locator_params(self, axis='both', tight=None, **kwargs):
27902790 self .autoscale_view (tight = tight , scalex = _x , scaley = _y )
27912791
27922792 def tick_params (self , axis = 'both' , ** kwargs ):
2793- """Change the appearance of ticks and tick labels.
2793+ """Change the appearance of ticks, tick labels, and gridlines .
27942794
27952795 Parameters
27962796 ----------
@@ -2848,16 +2848,29 @@ def tick_params(self, axis='both', **kwargs):
28482848 labelrotation : float
28492849 Tick label rotation
28502850
2851+ grid_color : color
2852+ Changes the gridline color to the given mpl color spec.
2853+
2854+ grid_alpha : float
2855+ Transparency of gridlines: 0 (transparent) to 1 (opaque).
2856+
2857+ grid_linewidth : float
2858+ Width of gridlines in points.
2859+
2860+ grid_linestyle : string
2861+ Any valid :class:`~matplotlib.lines.Line2D` line style spec.
2862+
28512863 Examples
28522864 --------
28532865
28542866 Usage ::
28552867
2856- ax.tick_params(direction='out', length=6, width=2, colors='r')
2868+ ax.tick_params(direction='out', length=6, width=2, colors='r',
2869+ grid_color='r', grid_alpha=0.5)
28572870
28582871 This will make all major ticks be red, pointing out of the box,
28592872 and with dimensions 6 points by 2 points. Tick labels will
2860- also be red.
2873+ also be red. Gridlines will be red and translucent.
28612874
28622875 """
28632876 if axis in ['x' , 'both' ]:
0 commit comments