It seems that it is only happening when the edgecolor values are [1 1 1].If i input for red [1 0 0] in the eps file the box color is red.So its only for white... :/
what causes this display in .eps figure?
1 次查看(过去 30 天)
显示 更早的评论
I am plotting in Matlab the following figure in .eps format (the following figure was exported using export_fig from fileexchange) :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146020/image.png)
When i load the figure.eps in latex the figure in the text have the following display:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146021/image.png)
And my question is: Why legend box is printed? I use the folowing code to make the box color white but in latex is still black:
set(h_legend,'EdgeColor',[1 1 1])
and to output .eps file :
print -depsc Figure.eps
Any idea?
回答(1 个)
the cyclist
2014-11-7
A different approach is to simply turn the legend box off:
hL = legend('test')
set(hL,'Box','off')
2 个评论
the cyclist
2014-11-8
I was able to replicate this. Definitely seems like a bug to me. You might want to submit a bug report.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!