Why does legend goes to the back of the axes box in multiplots if you click it or move it with the mouse?
Show older comments
Why does legend goes to the back of the axes box in multiplots if you click it or move it with the mouse? This happens specially in subplots or tiled plots (multiplots). I try to move the legend with the mouse somewhere else and immediate is behind the axes box completely concealed and I can not make it visible any more. Only if is on the side of the axes boxes within the gray zone but not inside the axes box where is desired to be.
3 Comments
DGM
on 28 Nov 2021
Are you using multiplot from the File Exchange? What version/environment is this in?
I tried the following in R2019b and I can drag the legend around without any stacking issues.
% using subplots
x = 1:10;
subplot(2,1,1)
plot(x)
subplot(2,1,2)
plot(x)
legend('blasdf')
% using multiplot instead
x = 1:10;
multiplot({x,x},{x,x});
legend('blasdf')
Adam Danz
on 28 Nov 2021
A minimal working example would be helpful.
juan sanchez
on 29 Nov 2021
Edited: Adam Danz
on 29 Nov 2021
Accepted Answer
More Answers (0)
Categories
Find more on Legend 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!