how can i change the linewidth of an axis grid using mplstyle? June 2, 2022 June 2, 2022 / 1 minute of reading Try this: ax.set_xlim(0,100.1) Just before the ax.grid(). CLICK HERE to find out more related problems solutions.