From 29fe77828131777b0706f69594120b3426e9d18e Mon Sep 17 00:00:00 2001 From: "Chuang, Yun-Shiuan" Date: Sat, 31 Mar 2018 14:59:02 -0500 Subject: [PATCH] Enable dotSize in the MDS plot to be adjustable In the original version, dotSize in the MDS plot could not be adjusted by users. Reason identified: The dotSize parameter is stored in userOption instead of localOptions, but the old script mistakenly tried to retrieve the dotSize information from the localOption. I edited the code so that dotSize is now rerived from the correct variable. --- +rsa/+fig/figureMDSArrangement.m | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/+rsa/+fig/figureMDSArrangement.m b/+rsa/+fig/figureMDSArrangement.m index a392bc3..d01b1f6 100644 --- a/+rsa/+fig/figureMDSArrangement.m +++ b/+rsa/+fig/figureMDSArrangement.m @@ -93,13 +93,13 @@ function figureMDSArrangement(RDM, userOptions, localOptions) %__________________________________________________________________________ % Copyright (C) 2010 Medical Research Council -import rsa.* -import rsa.fig.* -import rsa.fmri.* -import rsa.rdm.* -import rsa.sim.* -import rsa.spm.* -import rsa.stat.* +import rsa.* +import rsa.fig.* +import rsa.fmri.* +import rsa.rdm.* +import rsa.sim.* +import rsa.spm.* +import rsa.stat.* import rsa.util.* %% define defaults @@ -172,8 +172,8 @@ function figureMDSArrangement(RDM, userOptions, localOptions) % categories undefined: plot all text labels in black veryLocalOptions.textLabels = localOptions.textLabels; veryLocalOptions.dotColours = localOptions.dotColours; - if isfield(localOptions, 'dotSize') - veryLocalOptions.dotSize = localOptions.dotSize; + if isfield(userOptions, 'dotSize') + veryLocalOptions.dotSize = userOptions.dotSize; end%if plotDotsWithTextLabels(pats_mds_2D,veryLocalOptions);