<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Matplotlib scatter plots
The aim of this tutorial is to reproduce the following figure. You can imagine this figure as measuring A and B from a set of samples numbered (0,1,2,3, and 4).
Step1:  Of course, the first thing we need is the data. Usually this data will come from your experiments or your computations, but here we are going to generate it. It's always good to be able to generate some fake data to see if our algorithms will work.
The package scikit-learn provides lots of tools for data mining, data analysis and visualization. We will introduce it in a future lecture in this course. Here we will only use it to generate our data. The datasets module has several functions to generate different types of data. We will use make_blobs.
Step2:  Start with the default options for scatter and then change the code until you get as close as possible to the figure above.
<ASSISTANT_TASK:>
Python Code:
from IPython.display import Image
Image('../data/scatter_plot.png')
Explanation: Matplotlib scatter plots
The aim of this tutorial is to reproduce the following figure. You can imagine this figure as measuring A and B from a set of samples numbered (0,1,2,3, and 4).
End of explanation
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
plt.rcParams['figure.figsize'] = (10.0, 6.0)
from sklearn.datasets.samples_generator import make_blobs
X, y = blobs = make_blobs(n_samples=500, centers=5, cluster_std=1.5, random_state=8)
Explanation: Of course, the first thing we need is the data. Usually this data will come from your experiments or your computations, but here we are going to generate it. It's always good to be able to generate some fake data to see if our algorithms will work.
The package scikit-learn provides lots of tools for data mining, data analysis and visualization. We will introduce it in a future lecture in this course. Here we will only use it to generate our data. The datasets module has several functions to generate different types of data. We will use make_blobs.
End of explanation
plt.scatter(X[:,0], X[:,1])
Explanation: Start with the default options for scatter and then change the code until you get as close as possible to the figure above.
End of explanation
<END_TASK>