Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CRP Toolbox for MATLAB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Norbert Marwan
CRP Toolbox for MATLAB
Commits
5d666618
Commit
5d666618
authored
17 years ago
by
marwan
Browse files
Options
Downloads
Patches
Plain Diff
fix of the colorbar bug
parent
932cad0c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
private/create_CRPfig.m
+4
-1
4 additions, 1 deletion
private/create_CRPfig.m
private/create_JRPfig.m
+4
-1
4 additions, 1 deletion
private/create_JRPfig.m
private/show_crp.m
+7
-2
7 additions, 2 deletions
private/show_crp.m
private/switch_unthresholded.m
+10
-6
10 additions, 6 deletions
private/switch_unthresholded.m
with
25 additions
and
10 deletions
private/create_CRPfig.m
+
4
−
1
View file @
5d666618
...
...
@@ -10,6 +10,9 @@ function [h_axes,h_fig]=create_CRPfig(h,xshuttle,yshuttle)
% $Revision$
%
% $Log$
% Revision 4.7 2004/11/10 07:04:28 marwan
% initial import
%
%
% This program is free software; you can redistribute it and/or
% modify it under the terms of the GNU General Public License
...
...
@@ -109,7 +112,7 @@ global props
colormap
(
french
(
256
))
h1
=
colorbar
(
'horiz'
);
% Colorbar
set
(
h1
,
'Visible'
,
'off'
,
'Position'
,[
.
1
.
07
.
8
.
02
],
'Tag'
,
'Col
B
ar'
,
'xlim'
,[
0
255
])
set
(
h1
,
'Visible'
,
'off'
,
'Position'
,[
.
1
.
07
.
8
.
02
],
'Tag'
,
'Col
orb
ar'
,
'xlim'
,[
0
255
])
set
(
get
(
h1
,
'children'
),
'Visible'
,
'off'
)
set
(
findobj
(
'Tag'
,
'CRPPlot'
),
'Position'
,[
.
1
.
12
.
8
.
8
*
17
/
23
])
...
...
This diff is collapsed.
Click to expand it.
private/create_JRPfig.m
+
4
−
1
View file @
5d666618
...
...
@@ -10,6 +10,9 @@ function [h_axes,h_fig]=create_JRPfig(h,xshuttle,yshuttle)
% $Revision$
%
% $Log$
% Revision 4.2 2005/04/04 09:52:24 marwan
% bug in colormap selection fixed
%
% Revision 4.1 2005/03/16 12:21:30 marwan
% add support for joint recurrence plots
%
...
...
@@ -113,7 +116,7 @@ global props
colormap
(
french
(
256
))
h1
=
colorbar
(
'horiz'
);
% Colorbar
set
(
h1
,
'Visible'
,
'off'
,
'Position'
,[
.
1
.
07
.
8
.
02
],
'Tag'
,
'Col
B
ar'
,
'xlim'
,[
0
255
])
set
(
h1
,
'Visible'
,
'off'
,
'Position'
,[
.
1
.
07
.
8
.
02
],
'Tag'
,
'Col
orb
ar'
,
'xlim'
,[
0
255
])
set
(
get
(
h1
,
'children'
),
'Visible'
,
'off'
)
set
(
findobj
(
'Tag'
,
'CRPPlot'
),
'Position'
,[
.
1
.
12
.
8
.
8
*
17
/
23
])
...
...
This diff is collapsed.
Click to expand it.
private/show_crp.m
+
7
−
2
View file @
5d666618
...
...
@@ -10,6 +10,9 @@ function show_crp(X,Shuttle)
% $Revision$
%
% $Log$
% Revision 4.12 2007/05/22 13:43:45 marwan
% added fixed RR support
%
% Revision 4.11 2006/03/29 13:07:40 marwan
% problems regarding OPRPs and embedding resolved
%
...
...
@@ -97,14 +100,16 @@ NY=size(X,1);
'xdata'
,
Shuttle
.
xscale
(
1
:
NX
),
'ydata'
,
Shuttle
.
yscale
(
1
:
NY
),
...
'cdata'
,
X_show
,
'UserData'
,
X
)
set
(
get
(
findobj
(
'Tag'
,
'ColBar'
,
'Parent'
,
Shuttle
.
hCRP
),
'children'
),
'visible'
,
'on'
)
h1
=
findobj
(
'Tag'
,
'ColBar'
,
'Parent'
,
Shuttle
.
hCRP
);
h1
=
findobj
(
'Tag'
,
'Colorbar'
,
'Parent'
,
Shuttle
.
hCRP
);
set
(
h1
,
'visible'
,
'on'
)
set
(
get
(
h1
,
'xlabel'
),
'string'
,
'Dist. to Next Recurrence Point'
)
b2
=
get
(
h1
,
'position'
);
b3
=
get
(
h1
,
'ticklength'
);
set
(
h1
,
'ticklength'
,[
b3
(
1
)/
2
b3
(
2
)],
'xlim'
,[
0
255
],
...
'xtick'
,[
0
:
255
/
9
:
255
],
'xticklabel'
,
zl
)
titletext
=
sprintf
(
'%s \n'
,[
'Unthresholded '
,
Shuttle
.
txt_cross
,
'
Recurrence Plot
'
],
...
titletext
=
sprintf
(
'%s \n'
,[
Shuttle
.
txt_cross
,
'
Distance Matrix
'
],
...
[
'Dimension: '
,
num2str
(
Shuttle
.
m
),
', Delay: '
,
num2str
(
Shuttle
.
t
)]);
clear
v
h1
h2
...
...
This diff is collapsed.
Click to expand it.
private/switch_unthresholded.m
+
10
−
6
View file @
5d666618
...
...
@@ -10,6 +10,9 @@ function switch_unthresholded(hCRP)
% $Revision$
%
% $Log$
% Revision 4.8 2005/12/09 19:19:17 marwan
% && and || changed to & and | (upwards compatibility)
%
% Revision 4.7 2004/11/10 07:04:29 marwan
% initial import
%
...
...
@@ -19,7 +22,8 @@ function switch_unthresholded(hCRP)
% as published by the Free Software Foundation; either version 2
% of the License, or any later version.
if
get
(
gcbo
,
'value'
)
==
7
&
strcmp
(
get
(
gcbo
,
'tag'
),
'Method'
)
if
get
(
gcbo
,
'value'
)
==
10
&
strcmp
(
get
(
gcbo
,
'tag'
),
'Method'
)
set
(
findobj
(
'Tag'
,
'Unthresh'
,
'Parent'
,
gcf
),
'enable'
,
'off'
)
set
(
findobj
(
'Tag'
,
'Dim'
,
'Parent'
,
gcf
),
'enable'
,
'off'
)
set
(
findobj
(
'Tag'
,
'Dimtext'
,
'Parent'
,
gcf
),
'enable'
,
'off'
)
...
...
@@ -28,7 +32,7 @@ function switch_unthresholded(hCRP)
return
end
if
get
(
gcbo
,
'value'
)
~=
7
&
strcmp
(
get
(
gcbo
,
'tag'
),
'Method'
)
if
get
(
gcbo
,
'value'
)
~=
10
&
strcmp
(
get
(
gcbo
,
'tag'
),
'Method'
)
set
(
findobj
(
'Tag'
,
'Unthresh'
,
'Parent'
,
gcf
),
'enable'
,
'on'
)
set
(
findobj
(
'Tag'
,
'Dim'
,
'Parent'
,
gcf
),
'enable'
,
'on'
)
set
(
findobj
(
'Tag'
,
'Dimtext'
,
'Parent'
,
gcf
),
'enable'
,
'on'
)
...
...
@@ -42,14 +46,14 @@ function switch_unthresholded(hCRP)
set
(
findobj
(
'Tag'
,
'Sizetext'
,
'Parent'
,
gcf
),
'enable'
,
'off'
)
set
(
findobj
(
'Tag'
,
'Method'
,
'Parent'
,
gcf
),
'enable'
,
'off'
)
set
(
findobj
(
'Tag'
,
'Log'
,
'Parent'
,
gcf
),
'enable'
,
'on'
)
set
(
findobj
(
'Tag'
,
'Col
B
ar'
,
'Parent'
,
hCRP
),
'visible'
,
'on'
)
set
(
get
(
findobj
(
'Tag'
,
'Col
B
ar'
,
'Parent'
,
hCRP
),
'children'
),
'visible'
,
'on'
)
set
(
findobj
(
'Tag'
,
'Col
orb
ar'
,
'Parent'
,
hCRP
),
'visible'
,
'on'
)
set
(
get
(
findobj
(
'Tag'
,
'Col
orb
ar'
,
'Parent'
,
hCRP
),
'children'
),
'visible'
,
'on'
)
end
if
get
(
findobj
(
'Tag'
,
'Unthresh'
,
'Parent'
,
gcf
),
'value'
)
==
0
set
(
findobj
(
'Tag'
,
'Size'
,
'Parent'
,
gcf
),
'enable'
,
'on'
)
set
(
findobj
(
'Tag'
,
'Sizetext'
,
'Parent'
,
gcf
),
'enable'
,
'on'
)
set
(
findobj
(
'Tag'
,
'Method'
,
'Parent'
,
gcf
),
'enable'
,
'on'
)
set
(
findobj
(
'Tag'
,
'Col
B
ar'
,
'Parent'
,
hCRP
),
'visible'
,
'off'
)
set
(
get
(
findobj
(
'Tag'
,
'Col
B
ar'
,
'Parent'
,
hCRP
),
'children'
),
'visible'
,
'off'
)
set
(
findobj
(
'Tag'
,
'Col
orb
ar'
,
'Parent'
,
hCRP
),
'visible'
,
'off'
)
set
(
get
(
findobj
(
'Tag'
,
'Col
orb
ar'
,
'Parent'
,
hCRP
),
'children'
),
'visible'
,
'off'
)
set
(
findobj
(
'Tag'
,
'Log'
,
'Parent'
,
gcf
),
'enable'
,
'off'
)
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment