Commit 02bd5405 authored by Jean-Yves TINEVEZ's avatar Jean-Yves TINEVEZ
Browse files

Plotting methods accept to plot only the segmentation skeleton.

parent d6dc1e60
......@@ -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
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment