I keep getting an error when i try to plot