Skip to content

Instantly share code, notes, and snippets.

@DeastinY
Created May 6, 2019 13:20
Show Gist options
  • Save DeastinY/49700c6d884fb5cfbe547940fdc89832 to your computer and use it in GitHub Desktop.
Save DeastinY/49700c6d884fb5cfbe547940fdc89832 to your computer and use it in GitHub Desktop.
Basic, common style ASIC plot guide
width, height = 18, 14
plt.figure()
mydata.plot.bar(color='C0', figsize=(width, height))
ax = plt.gca()
ax.set_title("Title", size=28)
ax.set_ylabel("YLabel", size=24)
ax.set_xlabel("XLabel", size=24)
ax.grid(True)
ax.tick_params(axis="both", which="major", labelsize=18)
plt.tight_layout()
plt.show()
plt.savefig("myplot.png", transparent=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment