Adding a line object to a legend??
조회 수: 2 (최근 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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!