Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion coolbox/core/track/bed/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, *args, **kwargs):
self.len_w = None # this is the length of the letter 'w' given the font size
self.counter = None
self.small_relative = None
self.is_draw_labels = properties['labels'] == 'on'
self.is_draw_labels = None
self.fp = font_manager.FontProperties(size=properties['fontsize'])
self.row_scale = properties['interval_height'] * 2.3
self.cache_gr = None
Expand Down Expand Up @@ -62,6 +62,8 @@ def __set_plot_params(self, gr: GenomeRange, ov_genes: pd.DataFrame):
self.is_draw_labels = False
else:
self.is_draw_labels = True
else:
self.is_draw_labels = properties['labels']
self.small_relative = 0.004 * (gr.end - gr.start)
self.counter = 0

Expand Down