import ShapelyChipDesigns as SD C = SD.Point(0, 0).buffer(5) SD.savedxf_polylist([C], "acircle") C
from pylab import show, figure import ShapelyChipDesigns as SD import mpld3 n1 = 3 n2 = 2 wfinger = 3 lfinger = 90 wgap = 3 ltaper = 100 wc = 10 wGgap = 4.5 CAP = SD.MakeFingercapacitor(n1, n2, wfinger, lfinger, wgap, ltaper, wc, wGgap) fig = figure() CAP.show_info() SD.mouseshow() mpld3.save_html(fig, "_img/test_finger_capacitor.html")
from pylab import show, figure, subplot, \ plot, tight_layout, grid, \ axis import ShapelyChipDesigns as SD import mpld3 ########################## # larger EBL markers: mwidth1 = 10 mlength1 = 30 markerlength, markerwidth = mlength1, mwidth1 P0 = SD.LineString([(-0.5,0),(0.5,0)]) M0 = SD.scale(P0, markerlength) M1 = SD.rotate(M0,90) M00 = M0.buffer(markerwidth/2., cap_style=3) M11 = M1.buffer(markerwidth/2., cap_style=3) MEBL1 = M00.union(M11) ########################## # smaller EBL markers: mwidth2 = 2 mlength2 = 12 markerlength, markerwidth = mlength2, mwidth2 P0 = SD.LineString([(-0.5,0),(0.5,0)])