Changed plotting functions to match new pyoifits format.