Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#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