Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

rotate axis labels matplotlib

plt.xticks(rotation=90)
Comment

rotate labels matplotlib

xticks(rotation=45) # rotate x-axis labels by 45 degrees.
yticks(rotation=90) # rotate y-axis labels by 90 degrees.
Comment

PREVIOUS NEXT
Code Example
Python :: tkinter always on top 
Python :: how to make a resizable pygame window 
Python :: draw a single pixel using pygame 
Python :: seaborn figure size 
Python :: how to install OpenCV? 
Python :: python order dataframe according to date time 
Python :: get the current year in python 
Python :: convert column in pandas to datetime 
Python :: change name of pygame window 
Python :: get gpu device name tensorflow 
Python :: json list to dataframe python 
Python :: python check if file exists 
Python :: python clear console 
Python :: python kivy Kivy files require #:kivy ! 
Python :: horizontal line matplotlib python 
Python :: get stats from list python 
Python :: selenium press tab python 
Python :: import datetime 
Python :: split data validation python 
Python :: python unchain list 
Python :: pyaudio not installing ubuntu 
Python :: install python-dev packages 
Python :: sns figsize 
Python :: plt to png python 
Python :: python read string between two substrings 
Python :: how to clear console python 
Python :: hide root window tkinter 
Python :: how to convert datetime to jdatetime 
Python :: how to identify GPU with pytorch script 
Python :: get_object_or_404 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =