'displayname' in figure property editor disappears
Show older comments
Hi all,
I usually use "displayname" in the plot function to mark each curve, for example: "plot(x,y, 'displayname','first item')"
it worked nicely before, but recently I got a problem, as shown below:

the legend still works, meaning the 'displayname' command worked. But it is empty in the property editor. when I have many curves, I use this to identify each curve, instead of the legend. Do you see why I got this problem?
Many thanks!
Ares
7 Comments
Dave B
on 24 Nov 2021
@Ares - I don't know why this is happening, but a workaround would be to use the Property Inspector (also under the View menu) instead of the property editor. It's confusing because you can edit properties in the inspector, but it's the more modern tool. A nice feature - the DisplayName is shown at the top of the inspector (It should show Figure [#] > Axes > [displayname]). You can also see the DisplayName, and edit it, in the section titled "Legend".
Ares
on 24 Nov 2021
Dave B
on 24 Nov 2021
I was going to ask if you could report it, hopefully it will be fixed soon but I'm glad there's a workaround in the mean time (also I think property inspector is generally better, albeit a tad slower to start up).
Divya Khapra
on 4 Feb 2022
I too recently got the same problem. It very cumbersome to use property inspector for each graph. Any idea if this bug has been fixed?
Dave B
on 4 Feb 2022
@Divya Khapra - I can't say anything with 100% confidence about a release that's not out yet, but think it's very likely that this won't be an issue in R2022a.
Steve Osborne
on 25 Aug 2022
This same thing is happening for me on R2021b. The DisplayName is only showing up in the legend and Plot Browser, but not in Property Editor or Property Inspector.
Ares
on 25 Aug 2022
Accepted Answer
More Answers (0)
Categories
Find more on Graphics Object Properties 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!