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
8 changes: 8 additions & 0 deletions coolbox/core/track/hist/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class HistBase(Track, PlotHist):

min_value : {float, 'auto'}, optional
Min value of track. 'auto' for specify max value automatically, default 'auto'.

spine: {float}, optional
Width of a horizon spine draw at the threshold.
"""

STYLE_LINE = "line"
Expand Down Expand Up @@ -122,6 +125,11 @@ def plot(self, ax, gr: GenomeRange, **kwargs):
self.plot_hist(ax, gr, indexes, values)
self.plot_label()

if "spine" in self.properties:
ax.spines['bottom'].set_position(('data', self.properties["threshold"]))
ax.spines['bottom'].set_linewidth(self.properties["spine"])
ax.spines['bottom'].set_visible(True)

def fetch_plot_data(self, gr: GenomeRange, **kwargs) -> HistData:
"""

Expand Down
Loading