Mercurial > octave
changeset 31875:ca670a0765c8
Return [xyz]ticklabel properties as column vector for Matlab compatibility.
* graphics.cc (axes::properties::calc_ticklabels): Create cell array with
numel() rows and 1 column.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 02 Mar 2023 12:23:11 -0800 |
parents | 1979288f086d |
children | ac088212b7dc |
files | libinterp/corefcn/graphics.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc Thu Mar 02 14:18:42 2023 -0500 +++ b/libinterp/corefcn/graphics.cc Thu Mar 02 12:23:11 2023 -0800 @@ -7937,7 +7937,7 @@ { Matrix values = ticks.get ().matrix_value (); Matrix lims = axis_lims.get ().matrix_value (); - Cell c (values.dims ()); + Cell c (dim_vector (values.numel (), 1)); // column vector for ML compat. std::ostringstream os; // omit tick labels depending on location of other axis