Skip to content

Commit

Permalink
Add kwarg imshow(borders=)
Browse files Browse the repository at this point in the history
  • Loading branch information
OverLordGoldDragon authored May 5, 2021
1 parent 7fa6fd4 commit efc6f91
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ssqueezepy/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ def viz_gmw_orders(N=1024, n_orders=3, scale=5, gamma=3, beta=60,

#### Visual tools ## messy code ##############################################
def imshow(data, title=None, show=1, cmap=None, norm=None, complex=None, abs=0,
w=None, h=None, ridge=0, ticks=1, aspect='auto', ax=None, fig=None,
yticks=None, xticks=None, xlabel=None, ylabel=None, **kw):
w=None, h=None, ridge=0, ticks=1, borders=1, aspect='auto', ax=None,
fig=None, yticks=None, xticks=None, xlabel=None, ylabel=None, **kw):
if (ax or fig) and complex:
NOTE("`ax` and `fig` ignored if `complex`")
if complex:
Expand Down Expand Up @@ -676,6 +676,9 @@ def imshow(data, title=None, show=1, cmap=None, norm=None, complex=None, abs=0,
ax.set_yticks([])
if xticks is not None or yticks is not None:
_ticks(xticks, yticks)
if not borders:
for spine in ax.spines:
ax.spines[spine].set_visible(False)
if xlabel is not None:
ax.set_xlabel(xlabel, weight='bold', fontsize=15)
if ylabel is not None:
Expand Down

0 comments on commit efc6f91

Please sign in to comment.