Answers for "matplotlib plot xlabel"

1

pandas plot xlabel

ax = df1.plot()
ax.set_xlabel("x label")
ax.set_ylabel("y label")
plt.Show()
Posted by: Guest on March-30-2021
1

share xlabel matplotlib

import matplotlib.pyplot as plt

fig, ax = plt.subplots(nrows=3, ncols=3, sharex=True, sharey=True, figsize=(6, 6))

fig.text(0.5, 0.04, 'common X', ha='center')
fig.text(0.04, 0.5, 'common Y', va='center', rotation='vertical')
Posted by: Guest on March-29-2021

Browse Popular Code Answers by Language