@@ -599,12 +599,12 @@ def _draw_regs_sub(self, n_fold, feedline_l=False, feedline_r=False):
599
599
else :
600
600
label = qreg ['label' ]
601
601
y = qreg ['y' ] - n_fold * (self ._cond ['n_lines' ] + 1 )
602
- self .ax .text (self .x_offset , y , label , ha = 'right' , va = 'center' ,
602
+ self .ax .text (self .x_offset - 0.2 , y , label , ha = 'right' , va = 'center' ,
603
603
fontsize = 1.25 * self ._style .fs ,
604
604
color = self ._style .tc ,
605
605
clip_on = True ,
606
606
zorder = PORDER_TEXT )
607
- self ._line ([self .x_offset + 0.5 , y ], [self ._cond ['xmax' ], y ],
607
+ self ._line ([self .x_offset + 0.2 , y ], [self ._cond ['xmax' ], y ],
608
608
zorder = PORDER_REGLINE )
609
609
# classical register
610
610
this_creg_dict = {}
@@ -630,20 +630,20 @@ def _draw_regs_sub(self, n_fold, feedline_l=False, feedline_r=False):
630
630
color = self ._style .tc ,
631
631
clip_on = True ,
632
632
zorder = PORDER_TEXT )
633
- self .ax .text (self .x_offset , y , this_creg ['label' ], ha = 'right' , va = 'center' ,
633
+ self .ax .text (self .x_offset - 0.2 , y , this_creg ['label' ], ha = 'right' , va = 'center' ,
634
634
fontsize = 1.5 * self ._style .fs ,
635
635
color = self ._style .tc ,
636
636
clip_on = True ,
637
637
zorder = PORDER_TEXT )
638
- self ._line ([self .x_offset + 0.5 , y ], [self ._cond ['xmax' ], y ], lc = self ._style .cc ,
638
+ self ._line ([self .x_offset + 0.2 , y ], [self ._cond ['xmax' ], y ], lc = self ._style .cc ,
639
639
ls = self ._style .cline , zorder = PORDER_REGLINE )
640
640
641
641
# lf line
642
642
if feedline_r :
643
- self ._linefeed_mark ((self .fold + 1 - 0.1 ,
643
+ self ._linefeed_mark ((self .fold + self . x_offset + 1 - 0.1 ,
644
644
- n_fold * (self ._cond ['n_lines' ] + 1 )))
645
645
if feedline_l :
646
- self ._linefeed_mark ((0.1 ,
646
+ self ._linefeed_mark ((self . x_offset + 0.3 ,
647
647
- n_fold * (self ._cond ['n_lines' ] + 1 )))
648
648
649
649
def _draw_ops (self , verbose = False ):
0 commit comments