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

Commit

Permalink
Fix merge conflict of #28675 branch with Sage 9.0.beta4
Browse files Browse the repository at this point in the history
  • Loading branch information
egourgoulhon committed Nov 4, 2019
2 parents b90b558 + e16951e commit 87bc58a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/sage/plot/graphics.py
Expand Up @@ -3401,3 +3401,27 @@ def inset(self, graphics, pos=None, fontsize=None):
elif 'fontsize' not in graphics._extra_kwds:
graphics._extra_kwds['fontsize'] = 6
return MultiGraphics([(self, pos0), (graphics, pos)])

# Deprecation notice for GraphicsArray import
def GraphicsArray(*args, **kwargs):
r"""
This is deprecated (see :trac:`28675`).
Use :class:`sage.plot.multigraphics.GraphicsArray` instead.
TESTS::
sage: from sage.plot.graphics import GraphicsArray
sage: c = circle((0,0), 1)
sage: G = GraphicsArray([c, c])
doctest:...: DeprecationWarning: GraphicsArray must be imported from sage.plot.multigraphics and no longer from sage.plot.graphics.
See https://trac.sagemath.org/28675 for details.
sage: G
Graphics Array of size 1 x 2
"""
from .multigraphics import GraphicsArray as NewGraphicsArray
from sage.misc.superseded import deprecation
deprecation(28675, "GraphicsArray must be imported from "
"sage.plot.multigraphics and no longer from "
"sage.plot.graphics.")
return NewGraphicsArray(*args, **kwargs)

0 comments on commit 87bc58a

Please sign in to comment.