Skip to content

Instantly share code, notes, and snippets.

@moyocoyani
Created December 3, 2020 23:49
Show Gist options
  • Select an option

  • Save moyocoyani/4202e2f21fbb52457acbfc66ce3476df to your computer and use it in GitHub Desktop.

Select an option

Save moyocoyani/4202e2f21fbb52457acbfc66ce3476df to your computer and use it in GitHub Desktop.
#Canvas
fig,ax = plt.subplots(1,1,figsize=(13,7.5),dpi=100)
#Chart
ax.plot(x,y)
#Attributes axesax.set_xlabel("Months")
ax.set_ylabel("Random variable")
ax.spines['bottom'].set_linestyle("--")
ax.spines['bottom'].set_linewidth(1)
ax.spines["bottom"].set_color('#404040')
ax.set_ylim(0,1000)
#Attributes plot
plt.locator_params(axis='y', nbins=4)
plt.suptitle("Lorem ipsum dolor sit amet")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment