Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2020-03-18 18:26:56
Size: 509
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 4: Line 4:
=== 時刻の基準を手で設定する ===
[[https://gwpy.github.io/docs/stable/timeseries/plot.html#plotting-multiple-timeseries-together|ここ]]を参照
{{{#!python
ax = plot.gca()
ax.set_epoch(1126259462) # GPS timeを入れる
}}}
Line 6: Line 12:

Line 9: Line 13:
他にも ''.add_state_segments()'' や ''.add_dataqualityflag()'' といった似たものがある。詳細は[[https://gwpy.github.io/docs/latest/plotter/api.html#gwpy.plotter.Plot.add_line|Plotting API]]を参照。
Line 12: Line 16:
他にも ''.add_state_segments()'' や ''.add_dataqualityflag()'' といった似たものがある。詳細は[[https://gwpy.github.io/docs/latest/plotter/api.html#gwpy.plotter.Plot.add_line|Plotting API]]を参照。 == 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)