Quantcast
Channel: MATLAB Central Newsreader - tag:"figure"
Viewing all articles
Browse latest Browse all 117

Re: How do I get or calculate actual pixel dimensions of an image in an axes in a fully normalized figure?

$
0
0
"Bjorn Gustavsson" wrote in message <od4f0f$qr8$1@newscl01ah.mathworks.com>...
> "gametjd" wrote in message <od30qv$eb4$1@newscl01ah.mathworks.com>...
> It should be as simple as setting the units of the current figure, and axes to pixels, I think.
>
> set(gcf,'units','pixels') % or whatever figure you need to manipulate
> set(gca,'units','pixels') % as above
>
> HTH

As it turns out this helps me with getting the pixel values I want...however it doesn't 100% solve my problem.

I have now discovered that the DPI info is no longer correctable as it was in previous versions of MATLAB.

I guess this is quite a complicated issue and there is not currently a solution to this that works across all platforms.

Here is the information about the exact nature of the problem.
 http://undocumentedmatlab.com/blog/graphic-sizing-in-matlab-r2015b

Viewing all articles
Browse latest Browse all 117

Trending Articles