Add ion to enable interactive plotting to eliminate random blank window when plotting in OSX