From: Jessica on 18 Jun 2010 15:00 I am using the code: image(A); set(gcf,'Position',get(0,'Screensize'))%enlarge image to full screen to have a picture appear. I want the picture to expand to the full size of the screen but also want the original dimensions of the picture to remain true to the original. When I use this script, the picture expands but it is stretched out. Thanks!
From: Walter Roberson on 18 Jun 2010 15:05 Jessica wrote: > I am using the code: > image(A); > set(gcf,'Position',get(0,'Screensize'))%enlarge image to full screen > > to have a picture appear. I want the picture to expand to the full size > of the screen but also want the original dimensions of the picture to > remain true to the original. When I use this script, the picture expands > but it is stretched out. Thanks! axis equal
From: us on 18 Jun 2010 15:10 "Jessica" <jyorzinski(a)ucdavis.edu> wrote in message <hvgfo6$p48$1(a)fred.mathworks.com>... > I am using the code: > > image(A); > set(gcf,'Position',get(0,'Screensize'))%enlarge image to full screen > > to have a picture appear. I want the picture to expand to the full size of the screen but also want the original dimensions of the picture to remain true to the original. When I use this script, the picture expands but it is stretched out. Thanks! one of the solutions % set the axis's pos/size... imagesc(rand(10,30)); axis image; set(gca,'position',[0,0,1,1],'xtick',[],'ytick',[]); % now, set the figure's pos/size... us
From: Jessica on 18 Jun 2010 15:20 "us " <us(a)neurol.unizh.ch> wrote in message <hvggad$1u9$1(a)fred.mathworks.com>... > "Jessica" <jyorzinski(a)ucdavis.edu> wrote in message <hvgfo6$p48$1(a)fred.mathworks.com>... > > I am using the code: > > > > image(A); > > set(gcf,'Position',get(0,'Screensize'))%enlarge image to full screen > > > > to have a picture appear. I want the picture to expand to the full size of the screen but also want the original dimensions of the picture to remain true to the original. When I use this script, the picture expands but it is stretched out. Thanks! > > one of the solutions > > % set the axis's pos/size... > imagesc(rand(10,30)); > axis image; > set(gca,'position',[0,0,1,1],'xtick',[],'ytick',[]); > % now, set the figure's pos/size... > > us Thanks for this quick response! I would like to be able to transfer the script to different computer screens without needing to adjust the code each time. So, is there a way to do this?
From: us on 18 Jun 2010 15:30 "Jessica" <jyorzinski(a)ucdavis.edu> wrote in message <hvggtl$9tl$1(a)fred.mathworks.com>... > "us " <us(a)neurol.unizh.ch> wrote in message <hvggad$1u9$1(a)fred.mathworks.com>... > > "Jessica" <jyorzinski(a)ucdavis.edu> wrote in message <hvgfo6$p48$1(a)fred.mathworks.com>... > > > I am using the code: > > > > > > image(A); > > > set(gcf,'Position',get(0,'Screensize'))%enlarge image to full screen > > > > > > to have a picture appear. I want the picture to expand to the full size of the screen but also want the original dimensions of the picture to remain true to the original. When I use this script, the picture expands but it is stretched out. Thanks! > > > > one of the solutions > > > > % set the axis's pos/size... > > imagesc(rand(10,30)); > > axis image; > > set(gca,'position',[0,0,1,1],'xtick',[],'ytick',[]); > > % now, set the figure's pos/size... > > > > us > > Thanks for this quick response! I would like to be able to transfer the script to different computer screens without needing to adjust the code each time. So, is there a way to do this? well... this solution works for any screen - as long as your GCA's units are NORMALIZED, otherwise SET them... set(gca,'units','normalized','position',[0,0,1,1],'xtick',[],'ytick',[]); us
|
Next
|
Last
Pages: 1 2 Prev: update GUI while in .m Next: find intersection coordinates of straingt line & curve |