Skip to content

Commit 5dae2e2

Browse files
committed
fix for PLOT - just call sphinx_plot
1 parent 4acfcdb commit 5dae2e2

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/sage/matrix/operation_table.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -981,19 +981,11 @@ def color_table(self, element_names=True, cmap=gist_rainbow_copy, **options):
981981
sage: OT.color_table()
982982
Graphics object consisting of 37 graphics primitives
983983
984-
985984
.. PLOT::
986-
import matplotlib.pyplot as plt
985+
987986
from sage.matrix.operation_table import OperationTable
988-
from sage.all import SymmetricGroup, operator
989987
OT = OperationTable(SymmetricGroup(3), operation=operator.mul)
990-
fig = OT.color_table().matplotlib()
991-
managed_fig=plt.figure()
992-
canvas_manager = managed_fig.canvas.manager
993-
canvas_manager.canvas.figure=fig
994-
fig.set_canvas(canvas_manager.canvas)
995-
plt.show()
996-
988+
sphinx_plot(OT.color_table())
997989
"""
998990

999991
# Base matrix plot object, without text

0 commit comments

Comments
 (0)