Skip to content

Commit

Permalink
A*PA evals: show axis labels for odd k in param sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarGrootKoerkamp committed Oct 26, 2023
1 parent 5440ed1 commit b380d62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions evals/astarpa/evals.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@
" # Format % scales.\n",
" if x in ['errorrate', 'divergence']:\n",
" ax.xaxis.set_major_formatter(mtick.PercentFormatter(1.0, decimals=0))\n",
" if x == 'k' and not categorical:\n",
" ax.xaxis.set_major_locator(mtick.MultipleLocator(base=2,offset=1))\n",
" \n",
" # Show major ticks\n",
" ax.tick_params(\n",
Expand Down

0 comments on commit b380d62

Please sign in to comment.