Created
March 12, 2020 17:41
-
-
Save aniruddha27/e00afa2019e63be0b520cfb1ca813d1f to your computer and use it in GitHub Desktop.
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
#plotting histogram | |
plt.hist(df['base_price'],rwidth=0.9,alpha=0.3,color='blue',bins=15,edgecolor='red') | |
#x and y-axis labels | |
plt.xlabel('Base price range') | |
plt.ylabel('Distinct order') | |
#plot title | |
plt.title('Inspecting price effect') | |
#save and display the plot | |
plt.savefig('C:\\Users\\Dell\\Desktop\\AV Plotting images\\matplotlib_plotting_10.png',dpi=300,bbox_inches='tight') | |
plt.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment