Commit 88fa2469 authored by Jean-Yves TINEVEZ's avatar Jean-Yves TINEVEZ
Browse files

For large number of cells, plot with thinner line.

parent d550d98e
......@@ -6,11 +6,13 @@ function hts = add_plot_variable( obj, values, ax )
n_objects = numel( boundaries );
hts = NaN( n_objects, 1 );
if n_objects > 1000, lw = 1; else, lw = 2; end
for i = 1 : n_objects
p = boundaries{ i };
val = values( i );
hts(i ) = patch( ax, p(:,1), p(:,2), p(:,3), val, ...
'LineWidth', 2 );
'LineWidth', lw );
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