Skip to content
GitLab
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
02bd5405
Commit
02bd5405
authored
Jul 31, 2020
by
Jean-Yves TINEVEZ
Browse files
Plotting methods accept to plot only the segmentation skeleton.
parent
d6dc1e60
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/@deproj/plot_values_contour.m
View file @
02bd5405
...
...
@@ -16,13 +16,39 @@ function hts = plot_values_contour( obj, values, ax )
if
n_objects
>
1000
,
lw
=
1
;
else
,
lw
=
2
;
end
[
X
,
Y
,
Z
]
=
obj
.
to_matrices
();
hts
=
patch
(
...
'XData'
,
X
,
...
'YData'
,
Y
,
...
'ZData'
,
Z
,
...
'FaceVertexCData'
,
values
,
...
'FaceColor'
,
'flat'
,
...
'LineWidth'
,
lw
,
...
'Parent'
,
ax
);
if
isempty
(
values
)
hts
=
patch
(
...
'XData'
,
X
,
...
'YData'
,
Y
,
...
'ZData'
,
Z
,
...
'FaceColor'
,
'none'
,
...
'EdgeColor'
,
'k'
,
...
'LineWidth'
,
lw
,
...
'Parent'
,
ax
);
elseif
ischar
(
values
)
hts
=
patch
(
...
'XData'
,
X
,
...
'YData'
,
Y
,
...
'ZData'
,
Z
,
...
'FaceColor'
,
'none'
,
...
'EdgeColor'
,
values
,
...
'LineWidth'
,
lw
,
...
'Parent'
,
ax
);
else
hts
=
patch
(
...
'XData'
,
X
,
...
'YData'
,
Y
,
...
'ZData'
,
Z
,
...
'FaceVertexCData'
,
values
,
...
'FaceColor'
,
'flat'
,
...
'LineWidth'
,
lw
,
...
'Parent'
,
ax
);
end
end
src/@deproj/plot_values_junction.m
View file @
02bd5405
...
...
@@ -6,13 +6,38 @@ function hts = plot_values_junction( obj, values, ax )
n_objects
=
numel
(
obj
.
epicells
);
if
n_objects
>
1000
,
lw
=
1
;
else
,
lw
=
2
;
end
hts
=
patch
(
...
'Faces'
,
F
,
...
'Vertices'
,
V
,
...
'FaceVertexCData'
,
values
,
...
'FaceColor'
,
'flat'
,
...
'LineWidth'
,
lw
,
...
'Parent'
,
ax
);
if
isempty
(
values
)
hts
=
patch
(
...
'Faces'
,
F
,
...
'Vertices'
,
V
,
...
'FaceColor'
,
'none'
,
...
'EdgeColor'
,
'k'
,
...
'LineWidth'
,
lw
,
...
'Parent'
,
ax
);
elseif
ischar
(
values
)
hts
=
patch
(
...
'Faces'
,
F
,
...
'Vertices'
,
V
,
...
'FaceColor'
,
'none'
,
...
'EdgeColor'
,
values
,
...
'LineWidth'
,
lw
,
...
'Parent'
,
ax
);
else
hts
=
patch
(
...
'Faces'
,
F
,
...
'Vertices'
,
V
,
...
'FaceVertexCData'
,
values
,
...
'FaceColor'
,
'flat'
,
...
'LineWidth'
,
lw
,
...
'Parent'
,
ax
);
end
end
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment