Skip to content

Commit 2e48992

Browse files
author
Release Manager
committed
gh-36397: Fix element labeling in `OperationTable.color_table` The labels were transposed. Fixes https://ask.sagemath.org/question/73752/typo-in-operationtable/ ### 📝 Checklist - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. URL: #36397 Reported by: Ricardo Buring Reviewer(s): Marc Mezzarobba
2 parents 41cf276 + 841fcb7 commit 2e48992

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)