If this is matplotlib, you can change the default font in plots using this:
import matplotlib.pyplot as plt plt.rcParams["font.family"] = "Arial"
Then you can match that font to your LaTeX settings