Python code can change the P constante and plot for different values.