Ticket #11379: trac_11379-size-suggestion.patch

File trac_11379-size-suggestion.patch, 997 bytes (added by rbeezer, 7 years ago)
  • sage/games/quantumino.py

    # HG changeset patch
    # User Rob Beezer <beezer@ups.edu>
    # Date 1306731400 25200
    # Node ID babec5f86489b65c7d55c89e41c15e8b576c309d
    # Parent  e30c544f957520d3c86242ed212750168b08d2d6
    [mq]: quant-sizer
    
    diff -r e30c544f9575 -r babec5f86489 sage/games/quantumino.py
    a b  
    705705        """
    706706        return iter(self._pentos)
    707707
    708     def show3d(self):
     708    def show3d(self, size=0.75):
    709709        r"""
    710710        Show the solution in 3D.
    711711
     
    718718        """
    719719        G = Graphics()
    720720        for p in self:
    721             G += p.show3d()
    722         aside_pento = self._aside.canonical() + (2.5,-4,0)
    723         G += aside_pento.show3d()
     721            G += p.show3d(size=size)
     722        aside_pento = self._aside.canonical() + (2.5*size/0.75,-4*size/0.75,0)
     723        G += aside_pento.show3d(size=size)
    724724        G.show(aspect_ratio=1, frame=False)
    725725        #return G
    726726