Issue
I'm drawing a Barplot in Python with matplotlib, and currently it looks as follows.
Briefly, I'm measuring a quantity called EOD under different settings (represented with different colors), and plotting the mean and std. dev. values for each setting over multiple measurements I've done.
The problem is, this EOD quantity can strictly take non-negative values so the area under 0 is misleading. I know this happens because for some settings (for example the blue one) the std. dev is larger than mean value. Still, I'd like to prevent this.
In short, how can I dock my bars to the bottom of the bounding box where it should start from 0?
Solution
ax.set_ylim(ymin=0)
did the trick as suggested by JohanC in the comments.
Answered By - SpiderRico
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.