1. 隐藏x坐标轴 import matplotlib.pyplot as plt x = [3, 4, 4, 6, 7, 8, 8, 12] y = [11, 12, 12, 14, 17, 15, 14, 19] fig, ax = plt.subplots(figsize=(