Change the font family for scanpy.pl in linux

I would like to change the fonts for scanpy plots labels into Arial or Helvetica but when I change font type using the following settings, nothing changed in the font family.

import scanpy as sc
import matplotlib as plt
sc.settings.set_figure_params(dpi=100,dpi_save=400,frameon=False,transparent=True)
plt.rcParams["pdf.fonttype"]=42

Is there any way for me to specify font family in scanpy.pl?

I think fonttype is more of a technical detail about how fonts work: Fonts in Matplotlib — Matplotlib 3.8.4 documentation

You can set the default font with the plt.rcParams["font.family"] setting

https://matplotlib.org/stable/gallery/text_labels_and_annotations/font_family_rc.html

You can probably also access the object directly, but I’m not sure how.

@Hrovatin may know an even better way.