title: Image displayed in GUI is tilted and not straight, MATLAB app designer
body: <p>I have displayed an image in GUI and at the start it is displayed fine.</p>
  <p>After some number of running it started to be displayed tilted:</p>
  <p><a href="https://i.stack.imgur.com/MMoFt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MMoFt.png" alt="enter image description here" /></a></p>
  <p>And this is the code that I used:</p>
  <pre><code>function LoadImageButtonPushed(app, event)
          global im;
          
          [rawname, rawpath] = uigetfile({'*.Jpg'},'Select Image Data');
          fullname = [rawpath rawname];
          
          ax = app.UIAxes1;
          im = imread(fullname);
          [~, ~, c] = size(im);
          if c ~= 1
              im = rgb2gray(im);
          end
          im = imresize(im,[256 256]);
          imshow(im, 'parent', ax);
  end
  </code></pre>
  <p>Is there some code that I need to add in order for the image to be displayed straight and not tilted always?</p>
  <p>Thank you.</p>