Pygal Scatter Plot
Pygal is a data visualization tool that offers robust and interactive capabilites for visualization. It can be coupled with applications to produce charts that can be interacted with, offering better value than the base matplotlib package. This series covers the implementation of various charts using pygal, starting with the Scatter Plot.
The code below generates random $x$ and $y$ values
import pygal
import numpy as np
x_vals = np.random.normal(20, 10, 100)
y_vals = np.random.normal(30, 5, 100)
data = list(zip(x_vals, y_vals))
data[: 5]
scatter = pygal.XY( stroke = False )
scatter.title = 'Scatter Plot'
scatter.add('X vs. Y', data)
scatter.render_to_file('pygal_scatter.svg')