Why my plot does not appears in axes in GUI
3 views (last 30 days)
Show older comments
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
Answers (1)
Adam
on 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.
0 Comments
See Also
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!