Scatter Plot
Given two continuous features, we can create a plot where the x-axis represents one and the y-axis represents another. Then each of the samples will represent a point on the plot. This is ideal when we want to detect any relational pattern between two features.
Let's implement this on matplotlib:
PYTHON
1import matplotlib.pyplot as plt
2
3x = np.random.randint(0, 100, 15)
4y = np.random.randint(0, 100, 15)
5plt.scatter(x, y)
6plt.show()

The same thing for plotly is:
PYTHON
1import plotly.express as px
2
3x = np.random.randint(0, 100, 15)
4y = np.random.randint(0, 100, 15)
5fig = px.scatter(x=x, y=y)
6fig.show()

For the conciseness of the lesson, we will now only write the data generation and plotting part in a single code snippet.