[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55919] Format short|long g does not align num
[Octave-bug-tracker] [bug #55919] Format short|long g does not align numbers within matrices
Sat, 16 Mar 2019 10:27:47 -0400 (EDT)
Mozilla/5.0 (Android 8.0.0; Mobile; rv:65.0) Gecko/65.0 Firefox/65.0
Follow-up Comment #3, bug #55919 (project octave):
I have this same problem, and it's worse when printing matrices with many
columns. Try this:
x = dec2base(0:255,4,4)-'0')'
format short g
In normal mode, on my display, it correctly gives Columns 1 through 47, 48
through 94 ... 236 to 256 and the matrix has 4 rows.
In "g" mode, it erroneously gives Columns 1 through 94, 95 through 188, 189
through 256, but the display can accommodate only 47 numbers per row with
spaces, so each *line* of the matrix spills over to 2 lines of unequal length,
and the display is a mess.
The calculation of the width of each element in "g" mode forgets to add the
space between elements, and tries to pack too many elements per line.
Reply to this item at:
Message sent via Savannah