-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels