Skip to content

Commit dfe0e63

Browse files
committed
Bigger points an added fit line.
1 parent 68624f5 commit dfe0e63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/make_performance_scatter_plots.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import json
44
import matplotlib.pyplot as plt
5+
import matplotlib.lines as mlines
56
import random
67

78

@@ -85,7 +86,10 @@ def make_scatter_plot(
8586
for x, y in points:
8687
xs.append(x)
8788
ys.append(y)
88-
ax.scatter(xs, ys, s=2)
89+
ax.scatter(xs, ys)
90+
line = mlines.Line2D([0, 1], [0, 1], color="red")
91+
line.set_transform(ax.transAxes)
92+
ax.add_line(line)
8993
fig.savefig(pathname, bbox_inches='tight', format=format)
9094

9195

0 commit comments

Comments
 (0)