필터 지우기
필터 지우기

How to add legend to a .fig file?

조회 수: 11 (최근 30일)
Poonam
Poonam 2013년 1월 29일
Hi,
I have a .fig file which I made by cutting plots from other .fig files. So I had basically had 5 plots on 5 different .fig files. Now I added all of these in to 1 .fig file. How can I add a legend to this? I do not have the data to plot these curves again.

채택된 답변

Walter Roberson
Walter Roberson 2013년 1월 29일
You do not need the data, just the handles of the line objects you wish to add legends for. You would need to open the figure, find the handles, legend() passing in those handles as the first argument, fiddle around with the legend properties, and eventually save as a figure.

추가 답변 (0개)

카테고리

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