I'm using false-color visualizations for some HDR images in MATLAB, but with large images I find that the colorbar labels get cut off.
In the MWE below, colorbar labels (and I think some of the colorbar too) have been cut off when I print to PDF for inclusion in LaTeX. I've uploaded the output I'm getting here.
Can anyone suggest a fix? Thanks.
MATLAB Code:
h=2304; w=3072;
y=(1:1:2304)';
x=1:1:3072;
z=y*x;
figure();
imshow(z,[]);
colormap(jet);
colorbar;
print(gcf, 'test.pdf', '-dpdf');
test.pdf
and also add a MWE example of your.tex
file to show how you include the PDF into your document?set(gcf,'PaperPositionMode','Auto','PaperType','a4')
before you print the image.