@@ -414,7 +414,7 @@ def plot_genes(
414414 debug ("determine new figure height and range to accommodate gene labels" )
415415
416416 # Increase the figure height by a certain factor, to accommodate labels.
417- height_increase_factor = 1.2
417+ height_increase_factor = 1.3
418418 fig .height = int (fig .height * height_increase_factor )
419419
420420 # Get the original y_range.
@@ -453,17 +453,17 @@ def plot_genes(
453453 )
454454
455455 # Put the pointer above or below the gene rectangle, depending on + or - strand.
456- neg_strand_pointer_y = orig_mid_y_range - 1.2
457- pos_strand_pointer_y = orig_mid_y_range + 1.2
456+ neg_strand_pointer_y = orig_mid_y_range - 1.1
457+ pos_strand_pointer_y = orig_mid_y_range + 1.1
458458 data ["pointer_y" ] = data ["strand" ].apply (
459459 lambda strand : pos_strand_pointer_y
460460 if strand == "+"
461461 else neg_strand_pointer_y
462462 )
463463
464464 # Put the label above or below the gene rectangle, depending on + or - strand.
465- neg_strand_label_y = orig_mid_y_range - 1.15
466- pos_strand_label_y = orig_mid_y_range + 1.25
465+ neg_strand_label_y = orig_mid_y_range - 1.25
466+ pos_strand_label_y = orig_mid_y_range + 1.3
467467 data ["label_y" ] = data ["strand" ].apply (
468468 lambda strand : pos_strand_label_y
469469 if strand == "+"
0 commit comments