Matlab uitable position issue

조회 수: 3 (최근 30일)
siluu
siluu 2015년 9월 25일
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개)

카테고리

Help CenterFile 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!

Translated by