Code to create plots of pin powers and fsr error (which doesnt work yet :( )