以前のリビジョンの文書です
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in
/mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/parser/handler.php on line
1458
Warning: Declaration of syntax_plugin_note::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in
/mnt/hep_web/hep_web/member/n-kota/dokuwiki/lib/plugins/note/syntax.php on line
79
Warning: Declaration of syntax_plugin_note::render($mode, &$renderer, $indata) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in
/mnt/hep_web/hep_web/member/n-kota/dokuwiki/lib/plugins/note/syntax.php on line
101
Warning: preg_match(): Compilation failed: invalid range in character class at offset 3120 in
/mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/parser/lexer.php on line
118
A PCRE internal error occured. This might be caused by a faulty plugin
====== ヒストグラムのbinの中のentry数を表示させたい ======
----
TH1::Draw の"TEXT" optionを使う。
ただし、"TEXT" だけだとhistogram自身が描画されず、数字だけ、しかも横向きに表示されてしまう。
そのため、
* "TEXTnn" (0<nn<90) optionを使い角度を指定("TEXT0" とすれば正方向に書かれる)
* "HIST" option と組み合わせて使うことでhistogram自身も描画
* また、文字のサイズはTH1::SetMarkerSize でいじることができる
<code cpp>
TH1F *hist = new TH1F("hist","hist",100,0,100);
//....(hist->Fill(...))
hist->SetMarkerSize(2.5);
hist->Draw("HIST TEXT0");
</code>