Skip to content

Instantly share code, notes, and snippets.

@shayaf84
Created June 21, 2021 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shayaf84/94604c9797c5312b8fcec262bdbf43be to your computer and use it in GitHub Desktop.
Save shayaf84/94604c9797c5312b8fcec262bdbf43be to your computer and use it in GitHub Desktop.
# Adjusting figuresize, and fontsize
plt.rcParams["figure.figsize"] = "8,6"
font = {'size': 12}
plt.rc('font', **font)
# Adding titles to the plots and axes
plt.title("Distribution of Amount over Both Classes")
plt.xlabel("Amount")
plt.ylabel("Class")
# Plotting the Amount column vs. Class Column
plt.scatter(data["Amount"],data["Class"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment