Update hpsModel_function.py

I write the plot commands in a separate function in order to plot just under a separate button.