title: Matlab Printing/Rendering Issue: Dotted Diagonal Line Prints Across Rectangle
body: <p>A dotted diagonal line appears when I print any annotation rectangle in MATLAB.  </p>
  
  <p>Example of Issue:  </p>
  
  <p><img src="https://i.stack.imgur.com/EKoZp.png" alt="enter image description here"></p>
  
  <p>I am attempting to create a annotation rectangle with black face color of arbitrary size on a figure.  In the MATLAB figure window, everything displays properly.  When I print the figure to a pdf, a diagonal dashed line appears from the bottom left corner to the top right corner.  I don't want this line to appear and would like your assistance in removing it from my pdf outputs.  </p>
  
  <hr>
  
  <h1>Code:</h1>
  
  <pre><code>h = figure( 'Units', 'inches', 'Position', [0 0 11 8.5], ...
      'PaperPosition', [0 0 11 8.5], 'PaperOrientation', 'landscape', 'Resize', ...
      'off','Visible','on', 'Renderer', 'painters');
  
  a = annotation('rectangle','Linestyle', 'none', 'Units', 'inches', ...
      'Position', [.25 .25 .5 .5], ...
      'FaceColor', 'k', 'EdgeColor', 'none');
  
  print(h,'temp.pdf','-dpdf','-r600', '-painters');
  </code></pre>
  
  <p>Thanks</p>