Answers for "set x label matplotlib"

8

change name of axis matplotlib

plt.xlabel('X axis')
plt.ylabel('Y axis')
Posted by: Guest on March-29-2020
4

add x axis label python

plt.xlabel("X axis label")
Posted by: Guest on April-06-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
-1

set x label matplotlib

plt.xlabel('xlabel', fontsize=18)
Posted by: Guest on June-13-2021
-2

label axis matplotlib

ax2.set_xlabel('time (s)')
Posted by: Guest on April-02-2020

Browse Popular Code Answers by Language