Skip to content

Concordance lines #2

@agahkarakuzu

Description

@agahkarakuzu

I noticed that scatter plots after concordance are screwed up if there is not a remarkable overlap between the pairs (as expectedly). In case someone feeds a non-overlapping pair, we should better do:

       v = axis;
        intsect = range_intersection([v(1) v(2)],[v(3) v(4)]);
        if ~isempty(intsect)
        
            identity = intsect(1):intsect(2);

            plot(identity,identity,'k--','LineWidth',2);  % Identity line % add diagonal
            plot(identity,identity*scaleC + shiftC,'r','LineWidth',4);

        
        else
            
           disp(['Concordance and identity lines cannot be drawn: ' cell2mat(XLabel) ' vs ' cell2mat(YLabel)]);
           
           
        end

Leaving this here as a note, will do respective changes soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions