Extremely tiny font in pyplot windows

This is a somewhat unusual issue that I’m facing: the font sizes in the matplotlib windows is far too small:

I’m using PyPlot.jl for my plots, and trying to save the plot from the icon in the plot window.
Does anyone know how to change this?

What is PyPlot.backend? (You could try to switch to a different backend with the MPLBACKEND environment variable.)

If you are using the TkAgg backend, this seems to be a known issue with tkinter. I can’t reproduce — on my system, tkinter uses the native file dialog.

julia> PyPlot.backend
"qt5agg"

Oddly, this happens only when I’m calling matplotlib through Julia, and not when I’m using python. I’m using the same matplotlib with the same backend in both cases:

julia> PyPlot.matplotlib
PyObject <module 'matplotlib' from '/home/jishnu/anaconda3/lib/python3.9/site-packages/matplotlib/__init__.py'>

and

In [2]: matplotlib.__file__
Out[2]: '/home/jishnu/anaconda3/lib/python3.9/site-packages/matplotlib/__init__.py'

In [6]: matplotlib.get_backend()
Out[6]: 'Qt5Agg'

Anyway, changing the backend to something else like Qt5Cairo does resolve this.