TRUSTWORTHY CODE AGAIN, plotting function included

YOU CAN FALL BACK ONTO THIS CODE,

no need to go any further backwards