![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174630/image.png)
subplot,it can not show the line's name in plot broswer
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Roger
el 21 de Mzo. de 2014
it works well when not using subplot ,| why? how to handle it |
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159152/image.png)
0 comentarios
Respuesta aceptada
Mischa Kim
el 21 de Mzo. de 2014
Roger, are you referring to the DisplayName?
subplot(2,1,1)
h1 = plot(x,y1)
set(h1,{'DisplayName'},{'xy1'})
subplot(2,1,2)
h2 = plot(x,y2)
set(h2,{'DisplayName'},{'xy2'})
Alternatively, you can set this property in the Property Editor:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174630/image.png)
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Subplots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!