Skip to content

Instantly share code, notes, and snippets.

@vegarsti
Last active October 18, 2017 07:27
Show Gist options
  • Save vegarsti/b6bf19f898a053d16b2b5225e5094164 to your computer and use it in GitHub Desktop.
Save vegarsti/b6bf19f898a053d16b2b5225e5094164 to your computer and use it in GitHub Desktop.
  • plt.savefig(filename, bbox_inches='tight') --> get the entire plot when saved
  • Reset to factory default matplotlib style
import matplotlib as mpl
mpl.rcParams.update(mpl.rcParamsDefault)
  • plt.axes('tight') removes all space around the area of the curve
  • plt.axes('equal') ensures x-y even
  • plt.axhline(y=production_accuracy, linewidth=2, color='k', label='production') horizontal line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment