added plotting to the cylinder_demo