Labels not showing up on Graphs
82 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jason
el 12 de Dic. de 2014
Comentada: Jason
el 12 de Dic. de 2014
This has been driving me crazy all morning. for some reason, my request to label an axes isn't working:
Yet, from the command window below, the strings are being assigned - they are just not showing up on the graph.
0 comentarios
Respuesta aceptada
Robert Cumming
el 12 de Dic. de 2014
Editada: Robert Cumming
el 12 de Dic. de 2014
you are creating variables called xlabel and ylabel, you need to do:
xlabel ( gTitles(1) )
ylabel ( gTitles(2) )
or better use the axes handle:
xlabel ( handles.axes1, gTitles(1) )
ylabel ( handles.axes1, gTitles(2) )
Note: You will need to clear the variables you created by mistake.
Más respuestas (0)
Ver también
Categorías
Más información sobre Grid Lines, Tick Values, and Labels 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!