Answers for "set tick labels matplotlib"

3

tick labels vertical matplotlib

plt.xticks(rotation=45)
Posted by: Guest on May-11-2020
3

adjust tick label size matplotlib

plt.xticks(fontsize=)
Posted by: Guest on May-11-2020
0

changing axis labels matplotlib

import matplotlib.pyplot as plt

fig, ax = plt.subplots()

labels = [item.get_text() for item in ax.get_xticklabels()]
labels[1] = 'Testing'

ax.set_xticklabels(labels)
Posted by: Guest on May-13-2020
0

turn off xticks matplotlib

# for matplotlib.pyplot
# ---------------------
plt.xticks([], [])
# for axis object
# ---------------
# from Anakhand May 5 at 13:08
# for major ticks
ax.set_xticks([])
# for minor ticks
ax.set_xticks([], minor=True)
Posted by: Guest on October-11-2020
-2

matplotlib custom ticks

axis.set_yticks([0.5,0.6,0.7,0.8,0.9,1.0])
Posted by: Guest on April-19-2021

Code answers related to "set tick labels matplotlib"

Python Answers by Framework

Browse Popular Code Answers by Language