odd plotyy behavior in GUI
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Franco
el 15 de Mzo. de 2014
Comentada: Franco
el 16 de Mzo. de 2014
Im using plotyy to display a 2-variable graph in a matlab GUI I built. I would like the graph to clear every time I hit a button, so the first line in the callback function is "cla reset", but it's not working and I have no idea why. Can anyone help me out? Thanks.
0 comentarios
Respuesta aceptada
Walter Roberson
el 15 de Mzo. de 2014
3 comentarios
Walter Roberson
el 16 de Mzo. de 2014
Your "cla reset" is probably not operating on the axes you think it is. You should be using an explicit axes argument in the call,
cla(TheAxes, 'reset')
It is recommended that you give the parent object (axes, figure) for every graphics operation instead of relying on MATLAB "knowing" which one you are working on. For example,
plot(TheAxes, x, y)
instead of
plot(x, y)
Más respuestas (0)
Ver también
Categorías
Más información sobre Two y-axis 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!