I am generating dotplots using scanpy
and unable to change the font size. Is there a way to do so?
For example, how would I edit this line of code?
sc.pl.dotplot(df, ["gene"], 'CellType', dendrogram=True, save = name)
I am generating dotplots using scanpy
and unable to change the font size. Is there a way to do so?
For example, how would I edit this line of code?
sc.pl.dotplot(df, ["gene"], 'CellType', dendrogram=True, save = name)
IIRC, scanpy just uses matplotlib under the hood, so there are several options:
You can set the fontsize globally:
You can update specifically only the fontsize of (all) axis labels:
Finally, if you have a handle of the axis, you can change the fontsize of labels by traversing the axis attributes: