what causes this display in .eps figure?

조회 수: 3 (최근 30일)
Dimitrios
Dimitrios 2014년 11월 7일
댓글: the cyclist 2014년 11월 8일
I am plotting in Matlab the following figure in .eps format (the following figure was exported using export_fig from fileexchange) :
When i load the figure.eps in latex the figure in the text have the following display:
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
Dimitrios
Dimitrios 2014년 11월 7일
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... :/

댓글을 달려면 로그인하십시오.

답변 (1개)

the cyclist
the cyclist 2014년 11월 7일
A different approach is to simply turn the legend box off:
hL = legend('test')
set(hL,'Box','off')
  댓글 수: 2
Dimitrios
Dimitrios 2014년 11월 7일
Thanks for the answer.But this also delete the white background of the text which i dont want to be deleted.I want olny the border color of the box to be white.The strange is that the code that i provided works for the others colors exeppt white.SO the closest solution that i found is that:
set(h_legend,'EdgeColor',[0.99 0.99 0.99])
A more elegance solution sould exist.
the cyclist
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 CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by