Skip to content

Commit

Permalink
remove right/top axis spines, rotate annotation 45
Browse files Browse the repository at this point in the history
  • Loading branch information
shanedsnyder committed Mar 31, 2023
1 parent d95fdf6 commit 0167034
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def autolabel(ax, rects):
textcoords="offset points",
ha='center',
va='bottom',
rotation=0,
rotation=45,
)

def plot_posix_access_pattern(record, ax=None):
Expand Down Expand Up @@ -53,6 +53,8 @@ def plot_posix_access_pattern(record, ax=None):
ax.set_xticklabels(labels)
ax.legend()

ax.spines[['right', 'top']].set_visible(False)

autolabel(ax=ax, rects=rects_total)
autolabel(ax=ax, rects=rects_seq)
autolabel(ax=ax, rects=rects_consec)
Expand Down

0 comments on commit 0167034

Please sign in to comment.