>>12036863depends on the complexity
if you can do numerical estimations of the functions, mostly working in 2D, and value speed and customization, then
>>12036885 is your best bet. or MATLAB, since matplotlib is literally just built in MATLAB, but it's not free unless you have a uni license.
I'll add that if you want to plot from analytic functions, 3D visualizations, and don't care how long it takes (or care about spending money) then you might prefer Mathematica.
I generally use both of them depending on what I'm trying to plot. Scatter plots and regressions, probability distributions? I'd probably use Python since I can get it running faster. Spherical harmonics/Hydrogen wavefunctions? Mathematica 100%.