Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concordance lines #2

Open
agahkarakuzu opened this issue Dec 5, 2018 · 0 comments
Open

Concordance lines #2

agahkarakuzu opened this issue Dec 5, 2018 · 0 comments

Comments

@agahkarakuzu
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant