Adding a line object to a legend??
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!