Borrar filtros
Borrar filtros

Problem saving figures with evaluating "Callback"

13 visualizaciones (últimos 30 días)
Alessandro Panzera
Alessandro Panzera el 18 de En. de 2017
Comentada: Sandra Zlabinger el 29 de En. de 2018
Hello, I have a problem saving figures. When I try to "save" a figure, the following warning appears on the workspace: "Error while evaluating PushTool ClickedCallback". When I try to "save as" a figure, the following warning appears on the workspace: "Error while evaluating Menu Callback". Can someone help me? thanks.
  4 comentarios
Walter Roberson
Walter Roberson el 19 de En. de 2017
Which MATLAB version are you using?
Is it possible that you are using AppDesigner ?
Alessandro Panzera
Alessandro Panzera el 19 de En. de 2017
i'm using the last MATLAB version (i.e. 9.1).
I don't find any problems using AppDesigner.

Iniciar sesión para comentar.

Respuesta aceptada

Nirav Sharda
Nirav Sharda el 24 de En. de 2017
Editada: Nirav Sharda el 24 de En. de 2017
You can try to restore search-path to the factory installed state using restoredefaultpath. If after executing this command you are able to save the figures, you can save the current search path using savepath. Please do not execute savepath if restoredefaultpath does not resolve the issue, as it would change your original search path. The path function shows your current search path if you want to save a copy of your original search path before executing the steps I mentioned. I hope this helps !
  4 comentarios
Sandra Zlabinger
Sandra Zlabinger el 29 de En. de 2018
Editada: Sandra Zlabinger el 29 de En. de 2018
I have exactly the same problem. I use the ButtonDownFcn callback to change yaxis limits when clicking on them and I get the same error message as described above when I want to save my figure as .fig. Saving it as jpg works just fine.
(That's the error message btw: "Error while evaluating Menu Callback"...nothing more)
And Nirav's suggestion doesn't work for me either
Sandra Zlabinger
Sandra Zlabinger el 29 de En. de 2018
I could figure out that the error does not come from the ButtonDownFcn but from the legends. When I don't add legends to my figure (it's a figure with different subplots) I can save my figure as always.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by