how to place an annotation one level deeper?
조회 수: 12 (최근 30일)
이전 댓글 표시
Hi,
I would like to place a small image into an annotation. It works if I don't choose a background color:
But I would like to set the background color to black (this makes the picture (i.e. the grayscale) invisible. So, how can I shift the annoation one level back or to shift the small image one layer up? Using FaceAlpha is not an option for me...
Thanks a lot
댓글 수: 2
Cris LaPierre
2021년 1월 11일
Could you share your images and your current plotting code for us to test with?
채택된 답변
Cris LaPierre
2021년 1월 11일
I'm not aware of a way to order the layers. I think my approach would probably be to add a black shape in the image under the annotation. The annotation will move if the figure is resized.
% Add black shape in specified location
bx = mapshape([3541660 3541900 3541900 3541660],[5492180 5492180 5492250 5492250],'Geometry','polygon');
mapshow(ax,bx,'FaceColor','k')
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!