Three Dimensional Plotting In Python Using And In If Statement