@@ -171,8 +171,11 @@ def __init__(
171171 self .cr_y = float (cr_y )
172172 self .cr_z = float (cr_z )
173173
174- self .o_d = 100e-3 if o_d is None else float (o_d )
175- self .L = 0.3 if o_d is None else float (L )
174+ self .o_d = 0.2 if o_d is None else float (o_d )
175+ self .L = 0.2 if L is None else float (L )
176+ self .odl = self .o_d
177+ self .odr = self .o_d
178+
176179 self .tag = tag
177180 self .scale_factor = scale_factor
178181 self .color = color
@@ -479,13 +482,13 @@ def _patch(self, position, check_sld, fig, units):
479482 """
480483 zpos , ypos = position
481484 L = self .L
482- scale = self .scale_factor * 0.3
485+ od = self .o_d * self . scale_factor
483486
484487 # plot the coupling
485488 z_upper = [zpos , zpos , zpos + L , zpos + L , zpos ]
486- y_upper = [ypos , ypos + scale , ypos + scale , ypos , ypos ]
489+ y_upper = [0 , od / 2 , od / 2 , 0 , 0 ]
487490 z_lower = [zpos , zpos , zpos + L , zpos + L , zpos ]
488- y_lower = [ypos , ypos - scale , ypos - scale , ypos , ypos ]
491+ y_lower = [0 , - od / 2 , - od / 2 , 0 , 0 ]
489492
490493 z_pos = z_upper
491494 z_pos .extend (z_lower )
0 commit comments