chevron_leftText, Label and Annotations Cookbook
Adding a title to a plotAdding arrows to an annotationAdding axis labels to a plotAdding markers to a plotAnnotating data pointsApplying an offset to annotationsChanging the default font sizeChanging the marker size in scatterplotsChanging the number of ticksChanging the tick sizeRemoving certain ticksRemoving column name label from pie chartsRemoving default axis labelsRotating axis labelsRotating custom tick labelsSpecifying custom tick labelsWriting mathematical expressions
check_circleMark as learned
Rotating axis labels in Matplotlib
schedule Mar 5, 2023Last updated
tocTable of Contentsexpand_more
Check out the interactive map of data science
To rotate axis labels in Matplotlib, use the
xticks(~) and the
The result is as follows:
Notice how the labels of the x-axis have been by rotated 90 degrees.
Published by Isshin Inada
Edited by 0 others
Did you find this page useful?
Ask a question or leave a feedback...
Enjoy our search
Hit / to insta-search docs and recipes!