Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IAH public
DeProj
Commits
1fd2c211
Commit
1fd2c211
authored
Jul 21, 2020
by
Jean-Yves TINEVEZ
Browse files
Fix bug in add_plot_id.
The text function requires the coordinates to be doubles.
parent
3a088996
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/@deproj/add_plot_id.m
View file @
1fd2c211
...
@@ -7,8 +7,9 @@ function hts = add_plot_id( obj, ax )
...
@@ -7,8 +7,9 @@ function hts = add_plot_id( obj, ax )
for
i
=
1
:
n_objects
for
i
=
1
:
n_objects
o
=
epicells
(
i
);
o
=
epicells
(
i
);
center
=
double
(
o
.
center
);
hts
(
i
)
=
text
(
ax
,
...
hts
(
i
)
=
text
(
ax
,
...
o
.
center
(
1
),
o
.
center
(
2
),
o
.
center
(
3
)
+
0.5
,
...
center
(
1
),
center
(
2
),
center
(
3
)
+
0.5
,
...
num2str
(
o
.
id
),
...
num2str
(
o
.
id
),
...
'HorizontalAlignment'
,
'center'
,
...
'HorizontalAlignment'
,
'center'
,
...
'VerticalAlignment'
,
'middle'
);
'VerticalAlignment'
,
'middle'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment