Error in Trace sampleing and traceplot

Glad that worked for you!