Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
doc plot attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno-TT authored and dimpase committed Jan 6, 2023
1 parent d85cf19 commit 4acfcdb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/sage/matrix/operation_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,19 @@ def color_table(self, element_names=True, cmap=gist_rainbow_copy, **options):
sage: OT.color_table()
Graphics object consisting of 37 graphics primitives
.. PLOT::
import matplotlib.pyplot as plt
from sage.matrix.operation_table import OperationTable
from sage.all import SymmetricGroup, operator
OT = OperationTable(SymmetricGroup(3), operation=operator.mul)
fig = OT.color_table().matplotlib()
managed_fig=plt.figure()
canvas_manager = managed_fig.canvas.manager
canvas_manager.canvas.figure=fig
fig.set_canvas(canvas_manager.canvas)
plt.show()
"""

# Base matrix plot object, without text
Expand Down

0 comments on commit 4acfcdb

Please sign in to comment.