plot_values_junction.m 517 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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