Skip to content

Commit 6333415

Browse files
committed
Precision plot: Add ticks at every commit.
1 parent e671d9c commit 6333415

File tree

1 file changed

+4
-0
lines changed
  • scripts/incremental/benchmarking

1 file changed

+4
-0
lines changed

scripts/incremental/benchmarking/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import numpy as np
1212
import brokenaxes
1313
import matplotlib as mpl
14+
import matplotlib.ticker as mticker
15+
1416
mpl.use("pgf")
1517
mpl.rcParams.update({
1618
"pgf.texsystem": "pdflatex",
@@ -325,6 +327,8 @@ def scatter_plot(data, xlabel, ylabel, outfile, size):
325327
plt.plot(x,y, marker='x', linewidth=0.4, markersize=1, alpha=0.85, color=colors[i % len(colors)], linestyle=linestyles[i % len(linestyles)])
326328
plt.xlabel(xlabel)
327329
plt.ylabel(ylabel)
330+
plt.gca().xaxis.set_major_locator(mticker.MultipleLocator(1))
331+
# plt.xticks([1,2,5,10,15])
328332
plt.ylim(bottom=-0.005, top=0.3)
329333
plt.tight_layout(pad=0.4)
330334
plt.savefig(outfile)

0 commit comments

Comments
 (0)