Matlab uitable position issue
조회 수: 3 (최근 30일)
이전 댓글 표시
I am trying to print a figure which has subplots on it. One of the subplots is a uitable, with the data I want to display. The figure looks nicely formatted on the matlab figure screen but as soon as I print the figure to a pdf file the uitable data disappears. Attached is a tiny piece of code which would demonstrate what I am seeing. How can I ensure that the full uitable is printed to a pdf, or tleast print what I am seeing in the matlab figure. I am guessing this is due to my lack of understanding of Matlab's figure positioning.
figP = figure ;
figP.Units = 'normalize';
figP.Position = [0 0 1 1];
t = uitable(figP,'Data',magic(3))
figP.PaperUnits ='normalized';
figP.PaperPosition = [ 0 0 1 1];
print(figP, '-dpdf', 'test.pdf');
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!