we can install python3-matplotlib and update with pip3 install --upgrade --user matplotlib then it works without uninstalling the package