Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #changing #axis #labels #matplotlib
ADD COMMENT
Topic
Name
1+9 =