===================== GUIによるプロット ===================== 実験データの取り込み --------------------- まず、用いる実験データの取り込みを以下の手順に従って行う。 図のように、 :menuselection:`ファイル --> Import --> Import ASCII...` を選択する。 .. image:: ./input_data/input1.png :scale: 60% 用いるデータを選択する。この時、 :menuselection:`Separator` で :menuselection:`SPACE` を選択し、 :menuselection:`Simplify white spaces` にチェックを入れる。 .. image:: ./input_data/input2.png :scale: 60% データが表にまとめられ、データの取り込みが完了した。 .. image:: ./input_data/input3.png :scale: 60% ``log plot`` -------------- 次に、取り込んだデータを変換して片対数グラフを作成する。 最初に、リゾチウムの散乱曲線のlogプロットから作成する。 表を右クリックして :menuselection:`Add Column` を選択し、列を追加する。 .. image:: ./plot_graph/input4.png :scale: 70% 追加した列を右クリックし、 :menuselection:`Set Column Values...` を選択する。 .. image:: ./plot_graph/input6.png :scale: 60% 次に、 :math:`I(q)` の対数を取る。 :menuselection:`AVG -->` :math:`ln` を選択し、 :menuselection:`Add function` を押して :math:`ln()` を表示する。 .. image:: ./plot_graph/input7.png :scale: 70% .. image:: ./plot_graph/input8.png :scale: 60% :math:`ln()` の :math:`()` 内に列を追加するために、Col("1")を変更する。 .. image:: ./plot_graph/input9.png :scale: 75% 1列目Col("1")= :math:`q` 、2列目Col("2")= :math:`I(q)` なので、Col("2")を選択し、 :menuselection:`Add Colunn` を押す。 .. image:: ./plot_graph/input10.png :scale: 65% .. image:: ./plot_graph/input11.png :scale: 72% :menuselection:`Apply` し、列4[Y]に :math:`I(q)` の対数を取ることが出来た。 .. image:: ./plot_graph/input12.png :scale: 60% 続いて、列4[Y]を右クリックし、 :menuselection:`Plot --> 直線` を選択する。 .. image:: ./plot_graph/input13.png :scale: 60% よって、下図の散乱曲線を作成することが出来た。 .. image:: ./plot_graph/input14.png :scale: 60% グラフの整形(散乱曲線) --------------------------- 以下に、藤澤研で使用するフォーマットで、プロットしたグラフの整形を行う。 出来たグラフを見たとき、軸が :menuselection:`右` :menuselection:`左` :menuselection:`下` :menuselection:`上` と4つ存在しており、すべての軸に数値が書かれている。また、軸のめもりが外側に付いている。この軸のめもりを内側にし、表示される数値を、 :menuselection:`X軸(下)` と :menuselection:`Y軸(左)` のみにするため、軸の編集を行う。 軸の編集は、めもりの数値あたりを右クリックし、 :menuselection:`Properties...` を選択して行う。 .. image:: ./editing_graph/input15.png :scale: 60% 下図が表示され、左側にある :menuselection:`Bottom = 下` 、 :menuselection:`Left = 左` 、 :menuselection:`Top = 上` 、 :menuselection:`Right = 右` の軸を指している。 すべての軸において、 :menuselection:`Major Tucks` と :menuselection:`Minor Ticks` を :menuselection:`Out --> In` にする。そうすることで、外にある軸のめもりが内に表示される。 さらに、:menuselection:`Top` と :menuselection:`Right` の軸の数値を非表示にするため、この2つの軸において、 :menuselection:`Show Labels` のチェックを外す。 .. image:: ./editing_graph/input16.png :scale: 55% .. image:: ./editing_graph/input17.png :scale: 55% .. image:: ./editing_graph/input18.png :scale: 55% よって、次の図のように軸を編集することが出来た。 .. image:: ./editing_graph/input19.png :scale: 60% また、めもりの数値の大きさ(フォント)を変更する時は、以下のように操作する。 :menuselection:`Axis Font` を選択する。 .. image:: ./editing_graph/input41.png :scale: 51% :menuselection:`Font` や :menuselection:`Font style` では文字の種類、 :menuselection:`Size` で大きさを変更することが出来る。 例として、:menuselection:`Size` を、9から24にする。 .. image:: ./editing_graph/input42.png :scale: 51% 以下のようにフォントを変えることが出来る。 .. image:: ./editing_graph/input43.png :scale: 60% 次に、軸のタイトルを編集する。 まずはX軸から行う。X軸のタイトルが表示されている空白あたりを右クリックし、 :menuselection:`Properties...` を選択する。 .. image:: ./editing_graph/input20.png :scale: 55% 図の画面で編集する。 .. image:: ./editing_graph/input21.png :scale: 66% 今回X軸は、 :math:`q` ( :math:`\rm{A^{-1}}` )である。これを下図のように打ち込み、 :menuselection:`Apply to...` を押す。 .. image:: ./editing_graph/input22.png :scale: 57% 同様にして、Y軸を :math:`log(I(q))` 、右軸は無いため :menuselection:`スペース` 、上のTitleを :menuselection:`リゾチウム_log plot` と打ち込む。 .. image:: ./editing_graph/input23.png :scale: 70% 続いて、グラフの凡例を編集する。 右クリックを押し、 :menuselection:`Properties...` を選択する。下図が表示され、 .. image:: ./editing_graph/input24.png :scale: 60% :menuselection:`\\|(1)` は残して打ち込む。 .. image:: ./editing_graph/input25.png :scale: 60% さらに、グラフの凡例の枠を編集するときは、以下のように操作する。 :menuselection:`frame` を選択する。:menuselection:`Color` は色、 :menuselection:`Line Style` は枠線の種類、 :menuselection:`Width` は枠線の太さを編集出来る。 .. image:: ./editing_graph/input26.png :scale: 55% 例えば、枠を点線にするときは、下図のように選択して :menuselection:`Apply` する。 .. image:: ./editing_graph/input27.png :scale: 55% また、グラフの表示範囲を編集するときは、 表示されているめもりの数値をダブルクリックして行う。 .. image:: ./editing_graph/input28.png :scale: 60% 例えば、0から0.6の範囲で表示されているグラフを、0から0.5までにしたいときは、以下のように編集する。 .. image:: ./editing_graph/input29.png :scale: 55% その結果、グラフは下図のようになった。 .. image:: ./editing_graph/input30.png :scale: 60% .. raw:: latex \clearpage 最後に、グラフの線を編集するときは、 グラフを右クリックし、 :menuselection:`Plot details...` を選択する。 .. image:: ./editing_graph/input31.png :scale: 60% 図の画面が表示される。 .. image:: ./editing_graph/input32.png :scale: 67% :menuselection:`Connect` や :menuselection:`Style` は線の種類、 :menuselection:`Width` は太さ(幅)、 :menuselection:`Color` は色、 :menuselection:`Opacity` は透明度を編集することが出来る。 .. image:: ./editing_graph/input32.5.png :scale: 55% 以上のやり方で、リゾチウムの散乱曲線のグラフの作成が出来る。 .. image:: ./editing_graph/input40.png :scale: 63% kratky plotのグラフのプロットから編集まで ------------------------------------------ 同様にして、リゾチウムのkratky plotのグラフを作成する。 表を右クリックし、 :menuselection:`Add Column` を選択し、列を追加する。 .. image:: ./kratky_graph/input33.png :scale: 65% 追加された列5[Y]を右クリックし、 :menuselection:`Set Column Values...` を選択する。 .. image:: ./kratky_graph/input34.png :scale: 55% 表を右クリックし、 :menuselection:`Add Column` を選択し、列を追加する。 .. image:: ./kratky_graph/input35.png :scale: 65% 続いて、列5[Y]を右クリックし、 :menuselection:`Plot --> 直線` を選択する。 .. image:: ./kratky_graph/input36.png :scale: 60% よって、図のようにkratky plotのグラフを作成することが出来た。 .. image:: ./kratky_graph/input37.png :scale: 50% リゾチウムの散乱曲線を作成したときと同様にしてグラフの編集を行い、図のリゾチウムのkratky plotのグラフが完成した。 .. image:: ./kratky_graph/input39.png :scale: 60% 以上のように、GUIによるプロットでグラフを作成する場合、実験データを選択し、数式を自分で打ち込み、計算して出た数値をグラフ化させる。さらに、グラフ軸の編集まで行わなければならない。