Beispiel #1
0
    def test_new(self):
        frame = cell.add_worksheet("frame0")
        re = RE(1, 2, 0, cell=cell)
        re.reFormat.set_fg_color("red")
        re.write(frame)

        re = RE(3, 7, cell=cell)
        re.reFormat.set_fg_color("red")
        re.write(frame)
        print(re)
        cell.close()
Beispiel #2
0
    def test_plotprb(self):
        """
        Make a compund path -- in this case two simple polygons, a rectangle
        and a triangle.  Use CLOSEOPOLY and MOVETO for the different parts of
        the compound path
        """
        frame = cell.add_worksheet("frame0")
        rg00 = RG(0, 0, SubFrameType('D'))

        prb0 = rg00.prb(0)
        prb0().write(frame)
        rg05 = RG(0, 5, SubFrameType('D'))
        prb5 = rg05.prb(5)
        prb5().write(frame)

        #prb2 = rg.deriveLocaizedVrbMappedPrb([2])[0]
        #prb2.patch.set_facecolor((0.0,0.0,1.0,0.5))
        # prb3 = rg.deriveDistributedVrbMappedPrb(1,[3],1)[0]
        # prb3().patch.set_facecolor((0.0,0.4,1.0,0.5))
        re1 = rg00.re(1,2)
        re2 = rg05.re(5,6)
        cell.close()