Padding and Frameless Plots - ScottPlot FAQ
https://scottplot.net/faq/paddingDefault Padding. The default behavior is to size every axis according to its contents (the largest tick label and the axis label if it is visible) with 5 px of padding by default. plt.SaveFig("padding-default.png"); Customize Padding for All Axes. You can increase the amount of padding (in pixels) around all axes:
matplotlib.pyplot.savefig — Matplotlib 3.5.1 documentation
matplotlib.org › matplotlibbbox_inches str or Bbox, default: rcParams["savefig.bbox"] (default: None) Bounding box in inches: only the given portion of the figure is saved. If 'tight', try to figure out the tight bbox of the figure. pad_inches float, default: rcParams["savefig.pad_inches"] (default: 0.1) Amount of padding around the figure when bbox_inches is 'tight'.