Matlab uitable position issue

2 views (last 30 days)
siluu
siluu on 25 Sep 2015
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');

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!