Skip to content

Commit c461609

Browse files
committed
Improve tick label rotation method
Using ax.set_xticks(rotation=90) without passing labels is discouraged by the documentation. It recommends ax.tick_params(axis='x', rotation=90) instead.
1 parent 7735701 commit c461609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cheatsheets.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@
977977
\textbf{… remove tick labels ?}\\
978978
\hspace*{2.5mm}~$\rightarrow$ ax.set\_[xy]ticklabels([])\\
979979
\textbf{… rotate tick labels ?}\\
980-
\hspace*{2.5mm}~$\rightarrow$ ax.set\_[xy]ticks(rotation=90)\\
980+
\hspace*{2.5mm}~$\rightarrow$ ax.tick\_params(axis="x", rotation=90)\\
981981
\textbf{… hide top spine?}\\
982982
\hspace*{2.5mm}~$\rightarrow$ ax.spines['top'].set\_visible(False)\\
983983
\textbf{… hide legend border?}\\

0 commit comments

Comments
 (0)