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