Skip to content
Snippets Groups Projects
Commit 494ab155 authored by marwan's avatar marwan
Browse files

bug in distance plot and colormap selection fixed

parent 7d59b887
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,9 @@ function xout=jrp(varargin) ...@@ -80,6 +80,9 @@ function xout=jrp(varargin)
% $Revision$ % $Revision$
% %
% $Log$ % $Log$
% Revision 1.1 2005/03/16 16:22:29 marwan
% support for joint recurrence plots added
%
% %
% %
% This program is part of the new generation XXII series. % This program is part of the new generation XXII series.
...@@ -315,7 +318,7 @@ end ...@@ -315,7 +318,7 @@ end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% switch routines %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% switch routines
try %try
switch(action) switch(action)
...@@ -834,12 +837,14 @@ switch(action) ...@@ -834,12 +837,14 @@ switch(action)
py = permute(y2, [ 3 1 2 ]); py = permute(y2, [ 3 1 2 ]);
s1 = px(:,ones(1,NY),:) - py(ones(1,NY),:,:); s1 = px(:,ones(1,NY),:) - py(ones(1,NY),:,:);
if check_stop(hCRP,hCtrl,nogui,obj), return, end if check_stop(hCRP,hCtrl,nogui,obj), return, end
sy = sqrt(sum(s1.^2, 3))'; sy = sqrt(sum(s1.^2, 3))'
if check_stop(hCRP,hCtrl,nogui,obj), return, end if check_stop(hCRP,hCtrl,nogui,obj), return, end
set(findobj('Tag','Status','Parent',findobj('Parent',hCRP,'Tag','CRPPlot')),'String','Building JRP Matrix'),drawnow set(findobj('Tag','Status','Parent',findobj('Parent',hCRP,'Tag','CRPPlot')),'String','Building JRP Matrix'),drawnow
% s=exp(-(s^2)/(4*.1^2)); % s=exp(-(s^2)/(4*.1^2));
X=double(sx) .* double(sy); X = double(sqrt(sx.^2 + sy.^2));
size(X)
matext=''; matext='';
clear sx sy s1 px py clear sx sy s1 px py
...@@ -878,8 +883,8 @@ set(0,'ShowHidden','Off') ...@@ -878,8 +883,8 @@ set(0,'ShowHidden','Off')
%%%%%%% error handling %%%%%%% error handling
%if 0 if 0
catch %catch
try, if nogui==0 try, if nogui==0
for i=1:length(obj.enable), set(obj.children(i),'Enable',obj.enable{i}); end for i=1:length(obj.enable), set(obj.children(i),'Enable',obj.enable{i}); end
set(h(1),'String','Apply',... set(h(1),'String','Apply',...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment