title: My plotted lines aren't appearing on my output figures
body: <p>so I'm processing a bunch of images at the one time, trying to display them all as figures with a series of plotted lines on each individual image as a result of the process. With some help I fixed the figure title issue, However the plotted lines are not appearing on my final figures, below is the code:</p>
  
  <pre><code>inputFolder = fullfile(pwd, 'BMPData');
  filePattern = fullfile(inputFolder, '*.bmp');
  %Get list of all Bmp Files in Folder
  BmpFiles = dir(filePattern)
  
  for i=1:length(BmpFiles)
      fname = BmpFiles(i).name;
      fullFileNameInput = fullfile(inputFolder,fname);
      A = imread(fullFileNameInput);
  
      %// Change
      AR=A(:,:,1);
      [rows, columns] = size(AR);
      y1 = 200;
      y2 = 315;
      row1 = AR(y1, :); % Extract this line of gray levels from the image.
      row2 = AR(y2, :);
      figure('name',fname),imshow(A), hold on; 
      plot([0, columns], [y1, y1], '.b'); 
      plot([0, columns], [y2, y2], '.m');
  end
  </code></pre>
  
  <p>The reason I am doing this is because I want to mark 2 rows (200 and 315) on all my images and then do some statistical analysis on all the pixels in them rows for further processing techniques.</p>