Python Plot 1d Array Using Pointers