Answers for "plt bars label vertical"

5

rotate labels matplotlib

xticks(rotation=45) # rotate x-axis labels by 45 degrees.
yticks(rotation=90) # rotate y-axis labels by 90 degrees.
Posted by: Guest on August-06-2020
0

bar plot fix lenthgy labels matplot

%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np

plt.xticks(rotation='vertical')
Posted by: Guest on July-18-2020

Python Answers by Framework

Browse Popular Code Answers by Language