Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/s/u/substratestack-0.3/substratestack/__init__.py   substratestack(Download)
        def draw_oxide(oxide_layer, y):
            oxide_thickness = oxide_layer.thickness * factor
            fill_color = 1.0 - oxide_layer.epsilon_rel/20.0
            c.setFillGray(fill_color)
            c.rect(x1 * units.mm, y * units.mm,
                   (x2 - x1) * units.mm,  oxide_thickness * units.mm,
                   stroke=1, fill=1)
            c.setFillGray(0.0)
                    u'Rsheet = %g m\u2126/\u25a1' %
                    (metal_layer.sheet_resistance / mOhm_sq))
            c.setFillGray(0.0)
            current_y = center[1] * units.mm + (len(text) / 2 - 0.5) * fontsize
            for i, line in enumerate(text):
                    u'R = %g \u2126' % (via.resistance),
                    'via fill = %.4g %%' % (via.fill * 100))
            c.setFillGray(0.0)
            current_y = center[1] * units.mm + (len(text) / 2 - 0.5) * fontsize
            for i, line in enumerate(text):