Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rraadd88 committed Aug 9, 2024
1 parent 584a088 commit 2e67f70
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions chrov/viz/ranges.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def plot_ranges(
zorders: dict=None,
show_segments: bool=False,
xtick_interval:float=None,
unit: str='coordinate (bp)',
unit: str='Coordinate (bp)',
test: bool=False,
kws_legend:dict={},
ax: plt.Axes=None,
Expand Down Expand Up @@ -135,10 +135,16 @@ def plot_ranges(
zorders={}

## lines
_=df1.apply(lambda x: ax.hlines(y=x[y],xmin=x[col_start],xmax=x[col_end],
color=colors[x[hue]] if not hue is None else color,
lw=lw
),axis=1)
_=df1.apply(lambda x:
ax.hlines(
y=x[y],
xmin=x[col_start],
xmax=x[col_end],
color=colors[x[hue]] if not hue is None else color,
lw=lw
),
axis=1,
)
ax.invert_yaxis()
# labels
if show_labels:
Expand Down

0 comments on commit 2e67f70

Please sign in to comment.