rearranged matplotlib to top