当前位置: 动力学知识库 > 问答 > 编程问答 >

How to display an image in Octave with original aspect ratio and size?

问题描述:

I want to display an image in octave without being scaled (i.e. one image pixel maps to exact one pixel of my monitor) or having a wrong aspect ratio. Unfortunately neither imshow(), imagesc() or image() do that automatically. But it must be possible, right?

I'm using Octave 3.2.4.

网友答案:

There's a couple ways to do this. Here's 2 of them:

  1. run daspect ([1 1]) after displaying the image;
  2. use set to change some properties of the image set (gca, "Position", [0 0 1 1])
网友答案:

I find that in Octave 3.8.1 (running the distro version from Linux Mint 17), using axis tight normal will produce a well-behaved graph similar to the standard Matlab output. YMMV.

分享给朋友:
您可能感兴趣的文章:
随机阅读: