Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created March 12, 2020 17:41
Show Gist options
  • Save aniruddha27/e00afa2019e63be0b520cfb1ca813d1f to your computer and use it in GitHub Desktop.
Save aniruddha27/e00afa2019e63be0b520cfb1ca813d1f to your computer and use it in GitHub Desktop.
#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