A scatter plot is one where the information is only displayed as dots with X and Y values. They are very useful when presenting samples and to see whether there's any relationship between two variables. In this recipe, we'll display a graph plotting time spent on a website against money spent, to see whether we can see a pattern.
Drawing a scatter plot
Getting ready
We need to install matplotlib in our virtual environment:
$ echo "matplotlib==2.2.2" >> requirements.txt
$ pip install -r requirements.txt
If you are using macOS, it's possible that you get an error like this—RuntimeError: Python is not installed as a framework. See the matplolib documentation on how to fix it: https://matplotlib...