Legend handling in Matlab figure.

22 次查看(过去 30 天)
Dear All, I need assistance related to legends of Matlab figure. I have only the figure which i have plotted through time-consuming simulation. While, i was trying to adjust the legends, that stopped me to go further in my work. I am trying to list my problem in statement, hope readers will get understand to give answer to this.
  1. I have figure with five lines.
  2. two figures have different colours and three have same color and line styles.
  3. I want to edit legend by only specifying three lines only.
  4. in plot browser, First two legends are showing right, however, the third line of interest legend is coming at the end, which i want to take at third place.5) i want to delete the remaining two legends from the legend box but not the lines from the plot.

采纳的回答

mirza
mirza 2015-10-21
Problem solved, For this you have to go for "Plot browser" then select the lines which you want to display, add the titles of the lines. If you want to remove any line from the legend then go to "More properties" to open "Inspector-axes", here you will find "string" beneath it there would be written tag of legend. open for editing this string, here you will find all the entries which are displaying in the legend window. You can edit and delete the legend entries from here.

更多回答(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