function stsd_grid_plotter_raw3innerportion(relevant_raw_rows,matches,plain_rawmatrix,meanmode_raw,x_vals,parameter_colors,epoch,raw_include_SD,...
    indivmode_raw,raw_comparison_format,epochal_colormaps,raw_axis,clrmp,include_tickmarks)
%called by stsd_grid_plotter_raw3 and stsd_grid_plotter_raw_flat_hy

hot_regions=plain_rawmatrix([relevant_raw_rows],[matches]); 
points_of_light=hot_regions';
epochal_plotstyle={'', ':', '--', '-.','','','',''};
linewidth=1;

if meanmode_raw
    plot(x_vals,mean(points_of_light),'color',parameter_colors{epoch},'linewidth',linewidth),hold on
    grid on
    if raw_include_SD
        plot(x_vals,mean(points_of_light)-std(points_of_light),'color',parameter_colors{(mod(epoch,length(parameter_colors)))},'linewidth',0.5),hold on%parameter_colors{(mod(epoch+1,length(parameter_colors)))},'linewidth',1.5),hold on
        plot(x_vals,mean(points_of_light)+std(points_of_light),'color',parameter_colors{(mod(epoch,length(parameter_colors)))},'linewidth',0.5),hold on%parameter_colors{(mod(epoch+1,length(parameter_colors)))},'linewidth',1.5),hold on
    end
elseif indivmode_raw
    if raw_comparison_format
        for jj=1:length(matches)
%             xxxx=x_vals(ceil(rand*10):10:end);        %every 10th trial is a lot fewer points for 'text' to remember, but still enough to see drifted trials
%             yyyy=plain_rawmatrix(relevant_raw_rows,matches(jj));
%             yyyy=yyyy(1:10:end);
%             text(xxxx,yyyy,num2str(matches(jj)),'color',parameter_colors{epoch},'fontsize',9)
            plot(x_vals,plain_rawmatrix(relevant_raw_rows,matches(jj)),'color',parameter_colors{epoch},'linewidth',linewidth),hold on    
            grid on
        end
    else
        for jj=1:length(matches)
            %text(x_vals,plain_rawmatrix(relevant_raw_rows,matches(jj)),num2str(matches(jj)),'color',clrmp(matches(jj),:),'fontsize',9)
            plot(x_vals,plain_rawmatrix(relevant_raw_rows,matches(jj)),epochal_plotstyle{epoch},'color',clrmp(matches(jj),:),'linewidth',linewidth),hold on
            grid on
        end
    end
end
if ~include_tickmarks, set(gca,'yticklabel',[],'xticklabel',[]), end
hold on%,text(0,-10,'-10pA','fontsize',20,'fontweight','bold'),text(10,0,'10ms','fontsize',20,'fontweight','bold')