Commit c381afd7 authored by Enrico Glerean's avatar Enrico Glerean

making fonts bigger for graphic layout requirements by publisher

parent 412e28d4
......@@ -19,6 +19,20 @@ load_semantics % script makes semdata
% how to deal with missing values?
nsdata=load('output/ns/ns_manual_mds.mat')
dim_labels={%'Bodily sensation strength','Mind sensation strength','Emotion intensity','Agency','Last time', 'Bodily sensation maps (Eucl.)','Bodily sensation maps (Spear.)','Bodily sensation maps (Cos.)','Semantic similarity', 'NeuroSynth'};
'Bodily saliency'
'Mental saliency'
'Emotion'
'Controllability'
'Lapse'
'Bodily maps (Eucl.)'
'Bodily maps (Spear.)'
'Bodily maps (Cos.)'
'Semantic similarity'
'NeuroSynth'
}
%% Approach 1: robust regression between distance matrices
ids=find(triu(ones(100),1)); % top triangle
......@@ -55,18 +69,7 @@ X4_dm(find(isnan(X4_dm)))=mmm;
X4=[zscore(X4_dm(ids))];
all_dm(:,:,11)=X4_dm;
dim_labels={%'Bodily sensation strength','Mind sensation strength','Emotion intensity','Agency','Last time', 'Bodily sensation maps (Eucl.)','Bodily sensation maps (Spear.)','Bodily sensation maps (Cos.)','Semantic similarity', 'NeuroSynth'};
'Bodily saliency'
'Mental saliency'
'Emotion'
'Controllability'
'Lapse'
'Bodily sensation maps (Eucl.)'
'Bodily sensation maps (Spear.)'
'Bodily sensation maps (Cos.)'
'Semantic similarity'
'NeuroSynth'
}
%save all_dm all_dm dim_labels
......@@ -193,12 +196,13 @@ export_fig -m4 'figs/merged_RDA_full.png'
%plot2svg('figs/merged_RDA_full.svg',gcf)
print(gcf,'figs/merged_RDA_full.svg','-painters','-dsvg')
%% repeat figure but remove columns 8 and 9
FS=14;
rda_r(8:9,:)=[];
rda_r(:,8:9)=[];
mask_p(8:9,:)=[];
mask_p(:,8:9)=[];
alldimlabels(8:9)=[];
alldimlabels{7}='Bodily sensation maps';
alldimlabels{7}='Bodily maps';
figure(2)
imagesc(rda_r,.6*[0 1])
hold on
......@@ -216,16 +220,18 @@ map=cbrewer('seq','YlOrRd',16);
map=[0.5020/2 0 0.1490/2;flipud(map);1 1 1;];
colormap(map)
hcb=colorbar
set(hcb,'FontSize',FS);
ylabel(hcb,'Similarity (Spearman''s correlation)')
set(gca,'YTick',1:length(alldimlabels))
set(gca,'YTickLabel',alldimlabels)
set(gca,'XTick',1:length(alldimlabels))
set(gca,'XTickLabel',alldimlabels,'XTickLabelRotation',90)
set(gca,'FontSize',FS);
axis square
set(gcf,'Color','white')
export_fig -m4 'figs/merged_RDA.png'
print(gcf,'figs/merged_RDA.svg','-painters','-dsvg')
error('stop here')
%% perform RDA for each cluster separately
load output/sim/sim_cluster.mat
dbscan_cluster_labels={
......
......@@ -88,7 +88,7 @@ set(gcf,'color',[1 1 1]);
%% myCorr plot
close all
FS=16; % font size
FS=20; % font size
DF=6; % distance between labels
sim=load('output/sim/sim_cluster.mat')
PLOTSUBSET=1; % to plot only few regression lines
......@@ -175,7 +175,7 @@ for n=1:N^2
if(n==1)
%plot(-2.7+12,28-9*(sim_clu-1),'o','MarkerEdgeColor',classColors(sim_clu,:),'MarkerFaceColor',classColors(sim_clu,:))
text(-3+20.5,29-DF*(sim_clu-1),'—','FontSize',20,'Color',classColors(sim_clu,:),'FontWeight','bold')
text(-2+20.5,28-DF*(sim_clu-1),dbscan_cluster_labels{sim_clu},'FontSize',16)
text(-2+20.5,28-DF*(sim_clu-1),dbscan_cluster_labels{sim_clu},'FontSize',FS)
end
end
[fi]=ksdensity(data(find(sim.sim_cluster.DBSCAN.class_from_mean_data<=0),dim1),xi);
......@@ -185,7 +185,7 @@ for n=1:N^2
%plot(-2.7,28-3*(sim_clu-1),'o','MarkerEdgeColor',[ 0 0 0],'MarkerFaceColor',[ 0 0 0])
%text(-2.5,28-3*(sim_clu-1),dbscan_cluster_labels{sim_clu},'FontSize',16)
text(-3+20.5,29-DF*(sim_clu-1),'—','FontSize',20,'Color',[0 0 0],'FontWeight','bold')
text(-2+20.5,28-DF*(sim_clu-1),dbscan_cluster_labels{sim_clu},'FontSize',16)
text(-2+20.5,28-DF*(sim_clu-1),dbscan_cluster_labels{sim_clu},'FontSize',FS)
end
else % we do a scatter plot
if(dim1>dim2)
......@@ -314,11 +314,11 @@ for n=1:N^2
end
% fix axis labels
if(dx == 0)
ylabel(dimlabels{dim2});
ylabel(strrep(dimlabels{dim2},' ',newline));
end
if(dy==N*IF*IF*(N-1))
xlabel(dimlabels{dim1})
xlabel(strrep(dimlabels{dim1},' ',newline))
end
axis square
end
......@@ -328,9 +328,9 @@ set(gcf,'Units', 'Pixels', 'OuterPosition', [0 0 850 1000]);
set(gcf,'color',[1 1 1]);
if(PLOTSUBSET==1)
export_fig('figs/mind_corrplot_subset.png','-m3')
%export_fig('figs/mind_corrplot_subset.png','-m3')
plot2svg('figs/mind_corrplot_subset.svg',gcf)
%plot2svg('figs/mind_corrplot_subset.svg',gcf)
print(gcf,'figs/mind_corrplot_subset_matlab.svg','-painters','-dsvg')
%saveas(gcf,'figs/mind_corrplot_subset.eps')
%print(gcf, '-dpdf', 'figs/mind_corrplot_subset_p.pdf');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment