Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81680
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-11-28 05:29 -0800 |
| Message-ID | <8bc6cbed-dd86-4f1c-8f28-d3ba29b95227@googlegroups.com> (permalink) |
| Subject | manipulating an existing plot ! |
| From | ram rokr <ramrokstheweb@gmail.com> |
Hello,
I already have a script that plots a polygon. But now I'm trying to script a python class that would enable me to import the previous plot , make instances and control it too(like specifying parameters like spacing , width, height or the like). My approach was, to create a new layout and try to import the exisiting plot and then try to make instances and manipulate it.
class DerivedClass(BaseClass):
def __init__(self, layout,topcell):
self.layout = pya.Layout()
self.layout.dbu = 0.001
self.topcell = self.layout.create_cell("TOP")
l1 = layout.layer(1, 0)
topcell.shapes(l1).insert(pya.Box(0, 0, 1000, 2000))
self.path = []
def add_new(self,path):
self.path.append(path)
How could I use layer mapping or any other method to accomplish this? Looking forward to your advise. Thanks.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
manipulating an existing plot ! ram rokr <ramrokstheweb@gmail.com> - 2014-11-28 05:29 -0800
csiph-web