Issue
I can't change the border color even though I declared it as black.
fig=plt.figure(figsize=(25, 10), tight_layout = True, edgecolor = 'black')
plt.title('Distribution of Item Type')
plt.xlabel('Item Type')
plt.hist(BigMart_Data_Encoded['Item_Type'],bins = 15)
Solution
Try defining the edgecolor
parameter inside the .hist()
function instead of figure:
fig=plt.figure(figsize=(25, 10), tight_layout = True)
plt.title('Distribution of Item Type')
plt.xlabel('Item Type')
plt.hist(BigMart_Data_Encoded['Item_Type'],bins=15, edgecolor='black')
Answered By - Adam Jaamour
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.