'displayname' in figure property editor disappears

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

@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".
@Dave B thanks Dave. I was just that told this is a bug for the current version and will be fixed in future release. Your suggestion regarding the inspector helps a lot.
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).
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?
@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.
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.
For now, I am using version 9.12.0.1884302 (R2022a), the problem is gone.

Sign in to comment.

 Accepted Answer

More Answers (0)

Categories

Find more on Graphics Object Properties in Help Center and File Exchange

Products

Release

R2021b

Asked:

on 23 Nov 2021

Commented:

on 25 Aug 2022

Community Treasure Hunt

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

Start Hunting!