How can I create a custom function in Python for plotting with different variables

join shbcf.ru