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

Commit

Permalink
Remove restrictive type check in MultiGraphics
Browse files Browse the repository at this point in the history
  • Loading branch information
egourgoulhon committed Oct 25, 2019
1 parent 2600bd7 commit ed586d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sage/plot/multigraphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ def __init__(self, graphics_list):
Multigraphics with 2 elements
"""
if not isinstance(graphics_list, (list, tuple)):
raise TypeError("graphics_list must be a list or a tuple, "
"not {}".format(graphics_list))
self._glist = []
self._positions = []
#
Expand Down Expand Up @@ -749,7 +746,7 @@ def _add_subplot(self, figure, index, **options):
Add a subplot to a given Matplotlib ``Figure``, the position of
which is governed by a given element of ``self``.
This method encapsulates the Matplotlib method ``Figure.add_subplot``
This method encapsulates the Matplotlib method ``Figure.add_axes``
and is intended to be called by :meth:`MultiGraphics.save`.
INPUT:
Expand Down

0 comments on commit ed586d3

Please sign in to comment.