import matplotlib.pyplot as plt import numpy as np import pandas as pd gx = [1,2,3,4] gy = [3,2,1,2] # FIGURE: fig1 fig = plt.figure() ax = fig.add_subplot(111) ax.scatter(gx, gy) # FIGURE: fig2 fig = plt.figure() ax = fig.add_subplot(111) ax.scatter(gy, gx) ax.axhline(np.mean(gy)) # FIGURE: test-table x = [1,2,3,4] y = [4,3,2,1] pd.DataFrame({"X": x, "Y": y})