Skip to content

Commit 25f9e2e

Browse files
committed
Add what's new entry.
1 parent 6733c61 commit 25f9e2e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)