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)
<matplotlib.collections.PathCollection at 0x7f26a41cb750>
This is a test figure 1.
# FIGURE: fig2
fig = plt.figure()
ax = fig.add_subplot(111)
ax.scatter(gy, gx)
ax.axhline(np.mean(gy))
<matplotlib.lines.Line2D at 0x2d2b710>
This is a test figure 2.
# FIGURE: test-table
x = [1,2,3,4]
y = [4,3,2,1]
pd.DataFrame({"X": x, "Y": y})
X | Y | |
---|---|---|
0 | 1 | 4 |
1 | 2 | 3 |
2 | 3 | 2 |
3 | 4 | 1 |