Why my plot does not appears in axes in GUI

8 visualizzazioni (ultimi 30 giorni)
odai kiwan
odai kiwan il 9 Apr 2018
Risposto: Adam il 9 Apr 2018
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

Risposte (1)

Adam
Adam il 9 Apr 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.

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by