Вариант 1: повернуть этикетки. Таким образом, вы "получаете" немного места.
import matplotlib.pyplot as plt
import numpy as np
x=["Monday","Tuesday","Wednesday","Thursday","Fryday","Saturday","Sunday"]
y=np.linspace(1,100,7)
fig,ax = plt.subplots()
ax.plot(x,y)
ax.tick_params(axis='x', rotation=45)
![enter image description here](https://i.stack.imgur.com/fW9V7.png)
Вариант 2: персонализируйте свои ярлыки.
ax.plot(x,y)
ax.set_xticklabels(['M','T','W','R','F','S','N'])
fig.savefig("/Users/Alessandro/Desktop/2.png")
![enter image description here](https://i.stack.imgur.com/GJY0N.png)
Вариант 3: dimini sh частота этикеток.
ax.plot(x,y)
ax.set_xticks([0,2,4,6])
ax.set_xticklabels(['M','W','F','N'])
![enter image description here](https://i.stack.imgur.com/ZkeNH.png)
Вариант 4: dimini sh размер метки.
ax.plot(x,y)
ax.xaxis.set_tick_params(labelsize=8)
![enter image description here](https://i.stack.imgur.com/FGS34.png)
Вариант 5: увеличить размер рисунка.
fig,ax = plt.subplots(figsize=(8,4))
ax.plot(x,y)
![enter image description here](https://i.stack.imgur.com/khFOx.png)