title: Matlab ylabel cutoff using plotyy function
body: <p>As seen in an included screenshot, the EPS output of matlab is cutting of the label on the right hand side Y axis.</p>
  
  <p>I am using the plotyy function, and printing to eps with:
  print(f1,'-depsc2' ,'figure1.eps');</p>
  
  <p>I have tried changing the paperposition property, as well as the papersize property, and these seem to keep scaling with the other at each adjustment, and therefore i can never get the paper size to increase on the the right.</p>
  
  <p>I have set paperpositionmode to manual.</p>
  
  <p>Does anyone have any ideas?</p>
  
  <p>I have created some sample code that is self sufficient and replicates the problem.
  The problem is created when increasing the tick and font sizes. However this is essential for my situation.</p>
  
  <pre><code>close all;
  
  % example data:
  x = 0:0.01:4;
  y1 = 5*sin(2*pi*x+0.1) + 20;
  y2 = 0.09*sin(2*pi*x);
  
  tickfontsize = 18;
  labelfontsize = 20;
  
  % begin figure:
  f1 = figure(1);
  [ax, h1, h2 ] =  plotyy(x,y1,x,y2)
  
  % axis labels and font size:
  set(get(ax(2),'Ylabel'),'String','Test1') ;
  set(get(ax(1),'Ylabel'),'String','test2') ;
  set(get(ax(1),'Ylabel'),'FontSize',labelfontsize) ;
  set(get(ax(2),'Ylabel'),'FontSize',labelfontsize) ;
  
  % left hand side ticks:
  set(ax(1),'YLim',[6 10]);
  set(ax(1),'YTick',[6:1:10]);
  set(ax(1),'FontSize',tickfontsize);
  
  % right hand side ticks:
  set(ax(2),'YLim',[-0.13 0.14]);
  set(ax(2),'YTick',[-0.1:0.05:0.1]);
  set(ax(2),'FontSize',tickfontsize);
  
  %print figure to eps:
  print(f1,'-depsc2', './simpleoutput.eps');
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/fYYcW.png" alt="Screenshot of EPS output"></p>