We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6733c61 commit 25f9e2eCopy full SHA for 25f9e2e
doc/users/next_whats_new/view_current_axis_format.rst
@@ -0,0 +1,16 @@
1
+View current appearance settings for ticks, tick labels, and gridlines
2
+----------------------------------------------------------------------
3
+
4
+The new `~matplotlib.axis.Axis.get_tick_params` method can be used to
5
+retrieve the appearance settings that will be applied to any
6
+additional ticks, tick labels, and gridlines added to the plot:
7
8
+.. code-block:: python
9
10
+ import matplotlib.pyplot as plt
11
12
+ fig, ax = plt.subplots()
13
+ ax.yaxis.set_tick_params(labelsize=30, labelcolor='red',
14
+ direction='out', which='major')
15
+ print(ax.yaxis.get_tick_params(which='major'))
16
+ print(ax.yaxis.get_tick_params(which='minor'))
0 commit comments