Skip to content
Snippets Groups Projects
Commit 6dcf4e65 authored by Christian Beckmann's avatar Christian Beckmann
Browse files

fixed timeseries plot width segfault

parent 6d36f028
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
include ${FSLCONFDIR}/default.mk include ${FSLCONFDIR}/default.mk
OPTFLAGS = -O3 -Wno-deprecated OPTFLAGS = -O3 -Wno-deprecated -ggdb
OPTFLAGS_alphaev6-dec-osf5.0-gcc2.95.2 = -O3 -mieee -mfp-trap-mode=sui OPTFLAGS_alphaev6-dec-osf5.0-gcc2.95.2 = -O3 -mieee -mfp-trap-mode=sui
PROJNAME = melodic PROJNAME = melodic
......
...@@ -144,6 +144,8 @@ namespace Melodic{ ...@@ -144,6 +144,8 @@ namespace Melodic{
0.05*(tmptc.Row(1).Maximum()-tmptc.Row(1).Minimum())); 0.05*(tmptc.Row(1).Maximum()-tmptc.Row(1).Minimum()));
newplot.grid_swapdefault(); newplot.grid_swapdefault();
newplot.set_xysize(750,150);
newplot.timeseries(tmptc, newplot.timeseries(tmptc,
report.appendDir(string("t")+num2str(cnum)+".png"), report.appendDir(string("t")+num2str(cnum)+".png"),
string("Timecourse No. ")+num2str(cnum), string("Timecourse No. ")+num2str(cnum),
...@@ -180,6 +182,8 @@ namespace Melodic{ ...@@ -180,6 +182,8 @@ namespace Melodic{
newplot.set_Ylabel_fmt("%.0f"); newplot.set_Ylabel_fmt("%.0f");
newplot.set_yrange(0.0,1.02*fmixtc.Maximum()); newplot.set_yrange(0.0,1.02*fmixtc.Maximum());
newplot.grid_swapdefault(); newplot.grid_swapdefault();
newplot.set_xysize(750,150);
if(opts.tr.value()>0.0){ if(opts.tr.value()>0.0){
newplot.add_xlabel(string("Frequency (in Hz / ")+num2str(fact)+ " )"); newplot.add_xlabel(string("Frequency (in Hz / ")+num2str(fact)+ " )");
newplot.timeseries(empty | fmixtc.t(), newplot.timeseries(empty | fmixtc.t(),
...@@ -278,7 +282,9 @@ namespace Melodic{ ...@@ -278,7 +282,9 @@ namespace Melodic{
newplot.grid_swapdefault(); newplot.grid_swapdefault();
newplot.set_Ylabel_fmt("%.2f"); newplot.set_Ylabel_fmt("%.2f");
newplot.add_xlabel(" Subject Number"); newplot.add_xlabel(" Subject Number");
// newplot.set_xysize(smode.Nrows()*80,150);
newplot.set_xysize(750,150);
newplot.timeseries(smode.t(), newplot.timeseries(smode.t(),
report.appendDir(string("s")+num2str(cnum)+".png"), report.appendDir(string("s")+num2str(cnum)+".png"),
string("Subject/Session mode No. ") + num2str(cnum)); string("Subject/Session mode No. ") + num2str(cnum));
...@@ -789,7 +795,10 @@ namespace Melodic{ ...@@ -789,7 +795,10 @@ namespace Melodic{
outMsize("allmodes", allmodes); outMsize("allmodes", allmodes);
newplot.add_xlabel("Component No."); newplot.add_xlabel("Component No.");
newplot.add_ylabel(""); newplot.add_ylabel("");
newplot.set_xysize(100+30*allmodes.Ncols(),300); if(allmodes.Ncols()<100)
newplot.set_xysize(100+30*allmodes.Ncols(),300);
else
newplot.set_xysize(1200,300);
newplot.boxplot(allmodes,report.appendDir(string("bp_Smodes.png")), newplot.boxplot(allmodes,report.appendDir(string("bp_Smodes.png")),
string("Subject/Session modes")); string("Subject/Session modes"));
report << "<img BORDER=0 SRC=\"bp_Smodes.png\"><p>" << endl; report << "<img BORDER=0 SRC=\"bp_Smodes.png\"><p>" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment