Borrar filtros
Borrar filtros

Help on commend 'cla' for axes on GUI

1 visualización (últimos 30 días)
Volkan Kandemir
Volkan Kandemir el 4 de Abr. de 2012
Hi everyone,
On my GUI there is a axes called as axes1 and I added ButtonDownFcn to axes1. After some plot I want to clear the plots and than replot them hence I used cla commend. However, cla commends not only deletes all plots but also all events. (Also hold off gives the same resault)
On the other hand, I tried deleting plots by using delete function but while re-deleting Matlab gives error.
Re-adding events to axes1 is possible but it will be very time consuming since ButtonDownFcn is not only event that axes1 handles. Any suggestion to this problem.
To sum up, I am looking for a function which clear plots on axes1 but not other properties.
  1 comentario
Jan
Jan el 4 de Abr. de 2012
The question is not clear. Wich error message do you get and what is "re-deleting"? What kind of "events" do you add?
Please post the relevant part of the code and ask a specific question. It is complicated to answer vague questions, because one cannot suggest a specific improvement.

Iniciar sesión para comentar.

Respuesta aceptada

Volkan Kandemir
Volkan Kandemir el 4 de Abr. de 2012
Now cla command is working properly. Maybe I forgot to delete one off the hold off command.

Más respuestas (0)

Categorías

Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by