Commit 1fd2c211 authored by Jean-Yves TINEVEZ's avatar Jean-Yves TINEVEZ
Browse files

Fix bug in add_plot_id.

The text function requires the coordinates to be doubles.
parent 3a088996
...@@ -7,8 +7,9 @@ function hts = add_plot_id( obj, ax ) ...@@ -7,8 +7,9 @@ function hts = add_plot_id( obj, ax )
for i = 1 : n_objects for i = 1 : n_objects
o = epicells( i ); o = epicells( i );
center = double( o.center );
hts(i ) = text( ax, ... hts(i ) = text( ax, ...
o.center(1), o.center(2), o.center(3) + 0.5, ... center(1), center(2), center(3) + 0.5, ...
num2str( o.id ), ... num2str( o.id ), ...
'HorizontalAlignment', 'center', ... 'HorizontalAlignment', 'center', ...
'VerticalAlignment', 'middle' ); 'VerticalAlignment', 'middle' );
......
Supports Markdown
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