PyPlot stopped working when upgrading to Fedora 37

Try;

using Pkg
ENV["PYTHON"]=""
Pkg.build("PyCall")

The next time you import PyPlot, it will tell Conda to install Matplotlib.

So it will use a Python installation that is separate from the Fedora Python version.