matplotlib.axes.Axes.get_ygridlines#
- Axes.get_ygridlines()[source]#
Return the yaxis' grid lines as a list of
Line2D.Warning
Ticks and their constituent parts, including grid lines, are not persistent. Various operations can create, delete, and modify the tick instances; see Tick objects.
You should generally use
Axis.set_tick_params/Axis.get_tick_paramsto define and query grid styling; see Styling ticks (tick parameters).