Ticket #11379: trac_11379-size-suggestion-updated.patch

File trac_11379-size-suggestion-updated.patch, 1.0 KB (added by slabbe, 7 years ago)

Applies over the correction patch.

  • sage/games/quantumino.py

    # HG changeset patch
    # User Rob Beezer <beezer@ups.edu>
    # Date 1306731400 25200
    # Node ID e868587fecd9ba3f15147d3d806f5c5d3e924764
    # Parent  24f12b3bdc80b688ab3762df7ff810f571ce8688
    [mq]: quant-sizer
    
    diff --git a/sage/games/quantumino.py b/sage/games/quantumino.py
    a b class QuantuminoState(SageObject): 
    12181218        return list(self)
    12191219
    12201220
    1221     def show3d(self):
     1221    def show3d(self, size=0.75):
    12221222        r"""
    12231223        Return the solution as a 3D Graphic object.
    12241224
    class QuantuminoState(SageObject): 
    12441244        """
    12451245        G = Graphics()
    12461246        for p in self:
    1247             G += p.show3d()
    1248         aside_pento = self._aside.canonical() + (2.5,-4,0)
    1249         G += aside_pento.show3d()
     1247            G += p.show3d(size=size)
     1248        aside_pento = self._aside.canonical() + (2.5*size/0.75,-4*size/0.75,0)
     1249        G += aside_pento.show3d(size=size)
    12501250
    12511251        # hack to set the aspect ratio to 1
    12521252        a,b = G.bounding_box()