Differences between revisions 2 and 3
Revision 2 as of 2020-03-20 13:37:13
Size: 746
Comment:
Revision 3 as of 2020-03-21 13:11:40
Size: 1026
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:

== matplotlib色々 ==
[[https://qiita.com/simonritchie/items/da54ff0879ad8155f441|プロットの複雑なレイアウトはGridSpecが便利かも、という話]]

[[https://bunseki-train.com/axvspan-and-axhspan/|matplotlibで一定区間に背景色をつける方法]]

Plotの描画関連

時刻の基準を手で設定する

ここを参照

   1 ax = plot.gca()
   2 ax.set_epoch(1126259462) # GPS timeを入れる

DQ Flagを添える

.add_segments_bar() を使う(ここを参照)。 他にも .add_state_segments().add_dataqualityflag() といった似たものがある。詳細はPlotting APIを参照。 https://gwpy.github.io/docs/latest/_images/open-data-spectrogram-5.png

matplotlib色々

プロットの複雑なレイアウトはGridSpecが便利かも、という話

matplotlibで一定区間に背景色をつける方法

KAGRA/Subgroups/PEM/PythonMemoJP/plot (last edited 2021-08-11 15:28:39 by tatsuki.washimi)