Issue
I have plotted some training curves where the shaded area represents the standard error. The shaded area is realized with the fill_between
method in Matplotlib
. However, the derived .eps
figure showed that the shaded areas have white borders, which can be observed in the below figure.
How can I remove these borders or set the edgecolor
to the same as the facecolor
and change its opacity?
The answer here only changes the edgecolor
's opacity.
I have changed the edgecolor
via edgecolor=face
but got solid line borders. Changing alpha
of edgecolor=(R,G,B,alpha)
seems useless to me. I want to further adjust the opacity of edgecolor
.
Solution
This sounds similar to the problem in this question where edges show up in saved PDFs. I can't test this without some example code of your problem, but if you can access the artists drawn onto the axis by fill between and set their edgecolor="face"
then this may solve your issue.
Update: As mentioned in the comments below, it is additionally necessary to set the linewidth as described in this question
Answered By - Tom Wagg
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.