Why my plot does not appears in axes in GUI
Mostrar comentarios más antiguos
i want to plot radar pulse in gui, but when i plot it it appears in the middle of the GUI not in the axes
1 comentario
Birdman
el 9 de Abr. de 2018
Can you share your code?
Respuestas (1)
Adam
el 9 de Abr. de 2018
Whenever you issue any plotting instruction you should always give the axes explicitly to avoid this kind of unexpected occurrence. In the more recent version of Matlab the vast majority of plotting functions take an axes handle as the first argument. If you are using an older version where this is not in the syntax then you can use the 'Name', 'Value' pair as e.g.
hIm = imagesc( im, 'Parent', hAxes );
Get out of the habit of just assuming that the current axes will always be the right one when you give a plot instruction.
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!