Filter löschen
Filter löschen

Cannot change order of plots in GUI

3 Ansichten (letzte 30 Tage)
Ali
Ali am 22 Sep. 2018
In GUI, I am plotting two vectors
h1=plot(handles.axes1,1:time, x, '.g' ); hold on
h2=plot(handles.axes1,1:time, y, '-r.');
But the first one is always covering the second. Even if I change the order above. And the command uistack(h2,'top') did not help. It looks like it does not work if the plot is within a GUI. Any idea? Using Matlab 2016b.
  1 Kommentar
Jan
Jan am 24 Sep. 2018
I do not believe that your observation is correct. Please post a piece of code, which reproduces the problem.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Joel Meyer Espinoza
Joel Meyer Espinoza am 24 Sep. 2018
it would be better if you upload the entire code
you can turn the visibility of fo an object
maybe this can help
set(h1,'visible','off')
also you could use different axes and use this
set(handles.axes1,'visible','off')
and plot the new plot in a new axis

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by