diff --git a/src/@deproj/add_plot_variable.m b/src/@deproj/add_plot_variable.m index 1a89b60f323aca203d6a954503e1f84a5f91c5b3..8bc6800e2dae1287054db483d8f534a2ae1bc32d 100644 --- a/src/@deproj/add_plot_variable.m +++ b/src/@deproj/add_plot_variable.m @@ -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