Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/init.php on line 542
ja:root:wantto10 [GiriWiki]

ユーザ用ツール

サイト用ツール


ja:root:wantto10

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:root:wantto10 [2017/03/30 01:49]
kota
ja:root:wantto10 [2017/04/06 10:19] (現在)
kota
ライン 9: ライン 9:
 以下は個別でいろいろ変えたい時用。 以下は個別でいろいろ変えたい時用。
  
-TGraph (継承しているTGraphErrorsも)をFitした時に+TGraph (継承しているTGraphErrorsも)をFitした時に統計box(fit情報が表示される)が出てくるが、それにアクセスするには、
 <code cpp> <code cpp>
  ​gPad->​Update();​  ​gPad->​Update();​
ライン 19: ライン 19:
  ​TPaveStats *st = (TPaveStats*)gr->​GetListOfFunctions()->​FindObject("​stats"​);​  ​TPaveStats *st = (TPaveStats*)gr->​GetListOfFunctions()->​FindObject("​stats"​);​
 </​code>​ </​code>​
-とかすると取ってこうだ+とかすれ
  
 +gPad->​Update()がないと失敗する。
 +<code cpp>
 + TList *list = gr->​GetListOfFunctions();​
 + ​list->​Dump()
 + ​gPad->​Update();​
 + ​list->​Dump();​
 +</​code>​
 +とすると、gPad->​Update();​の後にlistに"​stats"​が加えられているのが確認できる。
 +
 +
 +あと、いろいろ統計Boxをいじったあとは反映させるのに
 +<code cpp>
 + ​gPad->​Modified();​
 + ​gPad->​Update();​
 +</​code>​
 +が必要。
 +
 +
 +他TPaveStatsの扱いに関して詳しくは[[ja:​root:​stat|統計Box]]の章を参照
 +
 +
 +----
 +FitのStatistics boxを消したくて
 +
 +  TPaveStats *st = (TPaveStats*)gr->​GetListOfFunctions()->​FindObject("​stats"​);​
 +  st->​SetOptFit(0);​
 +
 +とか
 +
 +  gr->​GetListOfFunctions()->​FindObject("​stats"​)->​Delete();​
  
-他詳くは[[ja:​root:​stat|統計Box]]の章を参照+とかたがダメだった。。うーん。
ja/root/wantto10.1490838598.txt.gz · 最終更新: 2017/03/30 01:49 by kota