i can't find the mistake in the code

4 visualizaciones (últimos 30 días)
Elia
Elia el 25 de Dic. de 2013
Comentada: Image Analyst el 25 de Dic. de 2013
i created a GUI to plot multiple functions between specified limits ,their are 2 axes in the figure . i have a problem by plotting the functions , when i write them and give their limits and press the plot button , one function appears on the axes that i want , but when i run the code another time from the editor , the two functions appear , why is that happening ? (the .m file is attached below).

Respuesta aceptada

Walter Roberson
Walter Roberson el 25 de Dic. de 2013
  10 comentarios
Elia
Elia el 25 de Dic. de 2013
i did it already in the openingfcn , and i thought that when i set the XLimMode to manual the X-axis limits will stay unchanged but that didn't happen , i set the next plot property to replace children in order to don't reset the Xlim property by plotting another function . but t did not provide any result .
Image Analyst
Image Analyst el 25 de Dic. de 2013
You didn't attach the fig file so we can't run it. Calling xlim in the openingfcn is evidently not doing the job. Call it again right after you put stuff into the axes to "correct" it to whatever you want.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects 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