Skip to content

Commit 841fcb7

Browse files
committed
Fix element labeling in OperationTable.color_table
The labels were transposed.
1 parent 1cf0c13 commit 841fcb7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sage/matrix/operation_table.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,9 +1011,8 @@ def color_table(self, element_names=True, cmap=None, **options):
10111011
# iterate through each element
10121012
for g in range(n):
10131013
for h in range(n):
1014-
10151014
# add text to the plot
1016-
tPos = (g, h)
1015+
tPos = (h, g)
10171016
tText = widenames[self._table[g][h]]
10181017
t = text(tText, tPos, rgbcolor=(0, 0, 0))
10191018
plot = plot + t

0 commit comments

Comments
 (0)