fixing plotting function again

2 jobs for master in 22 seconds (queued for 1 second)