Matlab uitable position issue
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!