title: Scatter plot with multiple markers
body: <p>I am trying to put a scatter plot together from multiple data files, to see how the correlate to each other. The code looks like this:</p>
  
  <pre><code>hold all
  fia = fopen('data.txt');
  A = fscanf(fia, '%f %f %f', [3 inf]);
  t = A(1,:);
  a = A(2,:);
  r = A(3,:);
  
  figure(1)
  scatter(log(r),log(a),'r', '-');
  
  fclose(fia);
  
  fia = fopen('data.txt');
  A = fscanf(fia, '%f %f %f', [3 inf]);
  t = A(1,:);
  a = A(2,:);
  r = A(3,:);
  
  figure(2);
  scatter(log(r),log(a), 'g', '-');
  
  fclose(fia);
  </code></pre>
  
  <p>And so on, where the next data points are plotted on the same graph:</p>
  
  <pre><code>fia = fopen('data.txt');
  A = fscanf(fia, '%f %f %f', [3 inf]);
  t = A(1,:);
  a = A(2,:);
  r = A(3,:);
  
  figure(1);
  scatter(log(r),log(a), 'rx');
  
  
  fclose(fia);
  </code></pre>
  
  <p>ect.</p>
  
  <p>But when I run the function in Matlab, I get this error:</p>
  
  <pre><code>Error using specgraph.scattergroup/set
  The name 'linestyle' is not an accessible property for an instance
  of class 'scattergroup'.
  
  Error in specgraph.scattergroup (line 26)
    set(h,args{:});
  
  Error in scatter (line 83)
          h = specgraph.scattergroup('parent',parax,'cdata',c,...
  
  Error in Ratioincrease (line 11)
  scatter(log(r),log(a),'r', '-');
  </code></pre>
  
  <p>How can I have the scattergroup similar to a line group, as in how do I write it properly?</p>