Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a755218

Browse files
committed
Added whats_new entry for axes tick rotation via set_tick_params
1 parent 6dfb8cc commit a755218

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
`Axis.set_tick_params` now responds to 'rotation'
2+
-------------------------------------------------
3+
4+
Bulk setting of tick label rotation is now possible via :func:`set_tick_params` using the `rotation` keyword.
5+
6+
Example
7+
```````
8+
::
9+
10+
ax.xaxis.set_tick_params(which='both', rotation=90)

lib/matplotlib/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def __init__(self, axes, loc, label,
7373
pad=None,
7474
labelsize=None,
7575
labelcolor=None,
76-
labelrotation=0,
7776
zorder=None,
7877
gridOn=None, # defaults to axes.grid depending on
7978
# axes.grid.which
@@ -82,6 +81,7 @@ def __init__(self, axes, loc, label,
8281
label1On=True,
8382
label2On=False,
8483
major=True,
84+
labelrotation=0,
8585
):
8686
"""
8787
bbox is the Bound2D bounding box in display coords of the Axes

0 commit comments

Comments
 (0)