Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81680 > unrolled thread

manipulating an existing plot !

Started byram rokr <ramrokstheweb@gmail.com>
First post2014-11-28 05:29 -0800
Last post2014-11-28 05:29 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  manipulating an existing plot ! ram rokr <ramrokstheweb@gmail.com> - 2014-11-28 05:29 -0800

#81680 — manipulating an existing plot !

Fromram rokr <ramrokstheweb@gmail.com>
Date2014-11-28 05:29 -0800
Subjectmanipulating an existing plot !
Message-ID<8bc6cbed-dd86-4f1c-8f28-d3ba29b95227@googlegroups.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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web