I have a for loop which calculates a value (g) from a number of datasets, and plots it in a scatter graph:
g_meanarray = [] import matplotlib.patches as mpat