タグ

2011年9月9日のブックマーク (2件)

  • Invertible STFT and ISTFT in Python

    Is there any general-purpose form of short-time Fourier transform with corresponding inverse transform built into SciPy or NumPy or whatever? There's the pyplot specgram function in matplotlib, which calls ax.specgram(), which calls mlab.specgram(), which calls _spectral_helper(): #The checks for if y is x are so that we can use the same function to #implement the core of psd(), csd(), and spectro

    Invertible STFT and ISTFT in Python
  • matplotlibのグラフの体裁を整える - たこ焼き食べた.net

    前回は折れ線グラフを作成しました。 ただ、グラフにはx軸の名前だったり凡例だったりが必要ですよね。 今回はそういった内容をやります。 また、複数段にわたってプロットする方法を記します。 以前のお話はこちら matplotlibでグラフを書く - たこ焼きべた.net 今回もほとんどの内容を公式サイトを参考に記しています。 Matplotlib: Python plotting — Matplotlib 3.0.3 documentation テキスト関連 グラフの軸だったりに表示するテキストの設定を行ないます。 今回は簡単に、軸とタイトル、凡例などのみです。 なお、matplotlibでは日語の文字列を埋め込むことができませんのでご注意ください。 テキストを図中に埋め込んだり、矢印を描画する手法もありますが、今回は省略します。 というより使ったことがないので。。。 表なんかも埋め込める

    matplotlibのグラフの体裁を整える - たこ焼き食べた.net