comparison scripts/plot/util/private/__go_draw_axes__.m @ 20092:e10ad5214a59

__go_draw_axes__.m: change computation of number of lines (bug #44683) * scripts/plot/util/private/__go_draw_axes__.m: find number of occurences of "\n" in the string and add it to the number of rows
author Avinoam
date Thu, 09 Apr 2015 16:08:02 +0300
parents 9fc020886ae9
children 64f817945783
comparison
equal deleted inserted replaced
20091:df3244834a50 20092:e10ad5214a59
1346 colorspec = get_text_colorspec (color, mono); 1346 colorspec = get_text_colorspec (color, mono);
1347 endif 1347 endif
1348 1348
1349 if (ischar (obj.string)) 1349 if (ischar (obj.string))
1350 num_lines = rows (obj.string); 1350 num_lines = rows (obj.string);
1351 num_lines += numel (strfind (obj.string, "\n"));
1351 else 1352 else
1352 num_lines = numel (obj.string); 1353 num_lines = numel (obj.string);
1353 endif 1354 endif
1354 switch (valign) 1355 switch (valign)
1355 ## Text offset in characters. Relies on gnuplot for font metrics. 1356 ## Text offset in characters. Relies on gnuplot for font metrics.