some scripts by matplotlib