Adding a line object to a legend??

2 visualizaciones (últimos 30 días)
Jesse
Jesse el 30 de Oct. de 2013
Editada: Jesse el 30 de Oct. de 2013
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!

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by