Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a755218

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

File tree

Expand file treeCollapse file tree

2 files changed

+11
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+11
-1
lines changed
+10Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/axis.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.