필터 지우기
필터 지우기

Adding a line object to a legend??

조회 수: 2 (최근 30일)
Jesse
Jesse 2013년 10월 30일
편집: Jesse 2013년 10월 30일
Greetings all,
I don't know if Matlab can do this, but here it goes.
I have a plot, and while the plot itself is ok and so is the legend, I was told that I need to add a vertical line of height 0.14 in the legend. Why, I honestly don't know, but can we edit legends like that? If so, how would it look?
Currently, what works for me is
legend('Thickness at 90 cm carry height West', 'Drill Holes', 'Thickness at 95 cm carry height East', 'Location', 'SouthEast')
I tried the following, knowing it wasn't going to work:
legend('Thickness at 90 cm carry height West', 'Drill Holes', 'Thickness at 95 cm carry height East',line([0 0], [0 0.1442], 'Linewidth',4, 'Color', [1 1 0]), 'Location', 'SouthEast')
But I'm looking for something along the lines of that.Can we edit the legend like that?
Thanks!

답변 (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