Skip to content

Commit

Permalink
v0.5.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
OverLordGoldDragon committed Dec 19, 2020
1 parent dd57f2e commit 442b301
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ssqueezepy/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@ def wavelet_tf(wavelet, N=2048, scale=100, notext=False, width=1.1, height=1):
" = std_t * std_w\n\n"
"(rad-c/s=\n radians*cycles/samples)"
).format(wc, std_t, std_w, std_t * std_w)
_kw = dict(s=txt, xycoords='axes fraction', xy=(.7, .76), weight='bold',
_kw = dict(xycoords='axes fraction', xy=(.7, .76), weight='bold',
fontsize=16)
try:
plt.annotate(family='Consolas', **_kw) # 'Consolas' for vertical align
# 'Consolas' for vertical align
plt.annotate(txt, family='Consolas', **_kw)
except:
plt.annotate(**_kw) # in case platform lacks 'Consolas'
plt.annotate(txt, **_kw) # in case platform lacks 'Consolas'

## Title: wavelet name & parameters
title = wavelet._desc(N=N, scale=scale)
Expand Down

0 comments on commit 442b301

Please sign in to comment.