fixed missing $ in plotting