I couldn’t replicated your plot with the code you gave.
I have not modified the rcParams in matplotlib. They are default.