Skip to content

Commit

Permalink
add figure
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheltienne committed Oct 2, 2024
1 parent b4bdf70 commit d570383
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tutorials/audio/10_base_sounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

from stimuli.audio import Sound, Tone

# sphinx_gallery_thumbnail_number = 1

# %%
#
# In this tutorial, we will create, edit, save and load a pure tone auditory
Expand Down Expand Up @@ -110,3 +112,11 @@
period = int(sound.sample_rate / sound.frequency)
for k in range(0, samples_to_plot, period):
ax.axvline(times[k], color="lightgreen")

plt.show()

# %%
# Or with the convenient :meth:`~stimuli.audio.Tone.plot` method.

sound.plot()
plt.show()

0 comments on commit d570383

Please sign in to comment.