CHANGED:applied the pyplot visualization function;