File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -962,11 +962,12 @@ def get_tick_params(self, which='major'):
962
962
Parameters
963
963
----------
964
964
which : {'major', 'minor'}, default: 'major'
965
- The group of ticks to which the parameters are applied .
965
+ The group of ticks for which the parameters are retrieved .
966
966
967
967
Returns
968
968
-------
969
- dict on properties that deviate from the default
969
+ dict
970
+ Default properties for styling *new* elements added to this axis.
970
971
971
972
Notes
972
973
-----
@@ -975,6 +976,31 @@ def get_tick_params(self, which='major'):
975
976
elements, if they were modified directly by the user (e.g., via
976
977
``set_*`` methods on individual tick objects).
977
978
979
+ Examples
980
+ --------
981
+ ::
982
+
983
+ >>> ax.yaxis.set_tick_params(labelsize=30, labelcolor='red',
984
+ direction='out', which='major')
985
+ >>> ax.yaxis.get_tick_params(which='major')
986
+ {'direction': 'out',
987
+ 'left': True,
988
+ 'right': False,
989
+ 'labelleft': True,
990
+ 'labelright': False,
991
+ 'gridOn': False,
992
+ 'labelsize': 30,
993
+ 'labelcolor': 'red'}
994
+ >>> ax.yaxis.get_tick_params(which='minor')
995
+ {'left': True,
996
+ 'right': False,
997
+ 'labelleft': True,
998
+ 'labelright': False,
999
+ 'gridOn': False}
1000
+
1001
+ This allows us to confirm without visual inspection of the plot
1002
+ that our styling is having the desired effect.
1003
+
978
1004
"""
979
1005
_api .check_in_list (['major' , 'minor' ], which = which )
980
1006
if which == 'major' :
You can’t perform that action at this time.
0 commit comments