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
079601d2
Commit
079601d2
authored
Jul 27, 2020
by
Jean-Yves TINEVEZ
Browse files
plot_values_junction: plot the tissue using the junction graph.
parent
326f2f0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/@deproj/deproj.m
View file @
079601d2
...
...
@@ -28,8 +28,8 @@ classdef deproj
%% Conversion between MATLAB objects.
% Returns the faces and vertices of
a deproj collection
.
[
V
,
F
]
=
to_vertices_and_faces
(
obj
)
% Returns the faces and vertices of
the junction graph of a instance
.
[
V
,
F
]
=
graph_to_VF
(
obj
)
% Returns the cells boundary polygons as 3 matrices padded by NaNs.
[
X
,
Y
,
Z
]
=
to_matrices
(
obj
)
...
...
@@ -65,6 +65,10 @@ classdef deproj
% Plot the tissue with cells as ellipses, colored by the specified values.
hts
=
plot_values_ellipse
(
obj
,
values
,
ax
)
% Plot the tissue with the cell contour approximated by the junctions, colored by the specified values.
hts
=
plot_values_junction
(
obj
,
values
,
ax
)
end
...
...
src/@deproj/plot_values_junction.m
0 → 100644
View file @
079601d2
function
hts
=
plot_values_junction
(
obj
,
values
,
ax
)
%PLOT_VALUES_JUNCTION Plot the tissue with the cell contour approximated by the junctions, colored by the specified values.
[
V
,
F
]
=
obj
.
graph_to_VF
();
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
);
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