plot figures in layers
조회 수: 12 (최근 30일)
이전 댓글 표시
Hello
I have 12 figures "fig" drawn by matlab distribution function , well I need to join these figures in one figure "just like layers" with keeping their properties, so can matlab do that ? mean represent them as layers with some transparency . then I need to manipulate them independently when they are assembled
cheers Suhad
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 6월 22일
No. In MATLAB, figures are independent of each other and the only extent to which they can interact visually is that you can set the background color to 'none' to have items underneath show up where nothing else is drawn.
What is possible is to extract the graphics from figures and copyobj() them into a common figure. Some MATLAB graphics objects support transparency through Alpha Data properties, but most line and text-like objects do not. image(), surface() and patch() primitive objects support Alpha, and most "graphics" that are not lines or text are made up of those primitives. Relevant properties include: AlphaData, AlphaDataMapping, EdgeAlpha, FaceAlpha, FaceVertexAlphaData.
If the individual figures have different colormaps then there can be difficulty reconciling the colormaps; the file exchange contribution freezeColors() can help with that. With R2014b and later, you can have colormaps on a per-axis basis.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Color and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!