Last active
April 14, 2021 09:04
-
-
Save jjsantanna/6f8b1c13008ebfe699e70a61dd200ee0 to your computer and use it in GitHub Desktop.
matplotib plot figure template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import matplotlib.pyplot as plt # http://matplotlib.org/gallery.html | |
plt.style.use('ggplot') # https://matplotlib.org/3.1.1/gallery/style_sheets/style_sheets_reference.html | |
%matplotlib inline | |
fig = plt.figure(figsize=(5, 15)) | |
ax = plt.subplot2grid((1,1), (0,0)) | |
ax.set_title('Title') | |
# ax.set_ylabel("€ Per Month") | |
# ax.set_ylim(min,max) | |
# plt.xticks(np.arange(0, max(df['column'])+100, 100),rotation='vertical') | |
#fig.savefig('name.eps', bbox_inches='tight',format='eps', dpi=1200) | |
#fig.savefig('name.png', bbox_inches='tight',format='png', dpi=1200, transparent=True) | |
fig.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment