@@ -2036,11 +2036,11 @@ def set_axisbelow(self, b):
2036
2036
self ._axisbelow = b
2037
2037
2038
2038
@docstring .dedent_interpd
2039
- def grid (self , b = None , which = 'major' , axis = 'xy ' , ** kwargs ):
2039
+ def grid (self , b = None , which = 'major' , axis = 'both ' , ** kwargs ):
2040
2040
"""
2041
2041
call signature::
2042
2042
2043
- grid(self, b=None, which='major', axis='xy ', **kwargs)
2043
+ grid(self, b=None, which='major', axis='both ', **kwargs)
2044
2044
2045
2045
Set the axes grids on or off; *b* is a boolean. (For MATLAB
2046
2046
compatibility, *b* may also be a string, 'on' or 'off'.)
@@ -2052,7 +2052,7 @@ def grid(self, b=None, which='major', axis='xy', **kwargs):
2052
2052
*which* can be 'major' (default), 'minor', or 'both' to control
2053
2053
whether major tick grids, minor tick grids, or both are affected.
2054
2054
2055
- *axis* can be 'xy ' (default), 'x', or 'y' to control which
2055
+ *axis* can be 'both ' (default), 'x', or 'y' to control which
2056
2056
set of gridlines are drawn.
2057
2057
2058
2058
*kawrgs* are used to set the grid line properties, eg::
@@ -2068,9 +2068,9 @@ def grid(self, b=None, which='major', axis='xy', **kwargs):
2068
2068
b = True
2069
2069
b = _string_to_bool (b )
2070
2070
2071
- if axis == 'x' or axis == 'xy ' :
2071
+ if axis == 'x' or axis == 'both ' :
2072
2072
self .xaxis .grid (b , which = which , ** kwargs )
2073
- if axis == 'y' or axis == 'xy ' :
2073
+ if axis == 'y' or axis == 'both ' :
2074
2074
self .yaxis .grid (b , which = which , ** kwargs )
2075
2075
2076
2076
def ticklabel_format (self , ** kwargs ):
0 commit comments