Answers for "pyplot change tick labels"

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

own labels for ticks matplotlib

ax.set_xticklabels(labels)
Posted by: Guest on April-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language