以前のリビジョンの文書です
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
====== 凡例(TLegend) ======
----
* ヒストグラム等の色分け等を表示
<code c_mac>
TLegend *legend = new TLegend( 0.8, 0.68, 0.99, 0.78) ; //()の中は位置の指定(左下の x , y 、右上の x , y )
legend->AddEntry( h0, "histogram 0" , "l") ; // AddEntry( pointer , "interpretation" , "option" )
legend->AddEntry( h1, "histogram 1" , "l") ; // option は "f"=box, "l"="L"=line, "p"=marker
legend->AddEntry( h2, "histogram 2" , "l") ;
legend->SetFillColor(0);
legend->Draw() ;
</code>
* 位置は、図全体の左下を(0,0)、右上を(1,1)として、TLegend(左下X , 左下Y , 右上X , 右上Y)で表す
* " f " = box, " l " = " L " = line, " p " = markerを表す
*" f " : SetFillColor , SetFillStyle で指定したものを表示
*" l " : SetLineColor で指定したものを表示
*" p " : SetMarkerStyle, SetMarkerColor で指定したものを表示
*TLegendの背景は、デフォルトで灰色
*なので、SetFillStyle(0)(背景なし)、もしくはSetFillColor(0)(背景白)してやるのがオススメ
* 簡単にLegendを出すには、 %gPad->BuildLegend()%してやればよい