Unverified Commit ae3b3e60 authored by Christian Arthur's avatar Christian Arthur Committed by GitHub
Browse files

Mini Update - Display Unit on MainGUI Axes (#38)

* Updated DesignNotes.ppt

* Update 1
Added Zoom and Pan functionality to axesSDG (probe display) on the MainGUI with additional buttons in the GUI

* Update 1.1
Minor Zoom adjustments

* Update 1
- Revert Clear Axes update to fix probe plot refresh issue (causing other errors)
- Adjusted units to appear for subject and group data

* Mini Fix
- DisplayAxesSDG.m file sync

* Condition - Unit Problem Fix
- Fix mistake on relating ppf with conditions
parent 161da859
Loading
Loading
Loading
Loading
+33 −7
Original line number Original line Diff line number Diff line
@@ -997,16 +997,42 @@ for iBlk = iDataBlks
            else
            else
                xlabel('Time (s)', 'FontSize', 11);
                xlabel('Time (s)', 'FontSize', 11);
            end
            end
            if strcmp(procElem.type, 'run')
                procName = {procElem.procStream.fcalls.name};
                procName = {procElem.procStream.fcalls.name};
                idx = contains(procName, 'hmrR_OD2Conc');
                idx = contains(procName, 'hmrR_OD2Conc');
            elseif strcmp(procElem.type, 'subj')
                procName = {procElem.runs(1).procStream.fcalls.name};
                idx = contains(procName, 'hmrR_OD2Conc');
            else
                procName = {procElem.subjs(1).runs(1).procStream.fcalls.name};
                idx = contains(procName, 'hmrR_OD2Conc');
            end
            if ~isempty(find(idx,1))
            if ~isempty(find(idx,1))
                if strcmp(procElem.type, 'run')
                    ppf = procElem.procStream.fcalls(idx).paramIn.value;
                    ppf = procElem.procStream.fcalls(idx).paramIn.value;
                if ppf(condition) == 1 && ~isempty(dataTree.currElem.acquired.metaDataTags.tags.LengthUnit)
                    if ppf(iWl) == 1 && ~isempty(dataTree.currElem.acquired.metaDataTags.tags.LengthUnit)
                        unit = dataTree.currElem.acquired.metaDataTags.tags.LengthUnit;
                        unit = dataTree.currElem.acquired.metaDataTags.tags.LengthUnit;
                        ylabel(['\muM ' unit], 'FontSize', 11);
                        ylabel(['\muM ' unit], 'FontSize', 11);
                    else
                    else
                        ylabel('\muM', 'FontSize', 11);
                        ylabel('\muM', 'FontSize', 11);
                    end
                    end
                elseif strcmp(procElem.type, 'subj')
                    ppf = procElem.runs(1).procStream.fcalls(idx).paramIn.value;
                    if ppf(iWl) == 1 && ~isempty(dataTree.currElem.runs(1).acquired.metaDataTags.tags.LengthUnit)
                        unit = dataTree.currElem.runs(1).acquired.metaDataTags.tags.LengthUnit;
                        ylabel(['\muM ' unit], 'FontSize', 11);
                    else
                        ylabel('\muM', 'FontSize', 11);
                    end
                else
                    ppf = procElem.subjs(1).runs(1).procStream.fcalls(idx).paramIn.value;
                    if ppf(iWl) == 1 && ~isempty(dataTree.currElem.subjs(1).runs(1).acquired.metaDataTags.tags.LengthUnit)
                        unit = dataTree.currElem.subjs(1).runs(1).acquired.metaDataTags.tags.LengthUnit;
                        ylabel(['\muM ' unit], 'FontSize', 11);
                    else
                        ylabel('\muM', 'FontSize', 11);
                    end
                end
            else
            else
                ylabel('\muM', 'FontSize', 11);
                ylabel('\muM', 'FontSize', 11);
            end
            end