BarStyle
棒グラフのオプションであり,棒のデフォルトスタイルを指定する.
BarStyle
BarStyle
棒グラフのオプションであり,棒のデフォルトスタイルを指定する.
詳細とオプション
- BarStyleを使うためには,まず棒グラフパッケージ をロードしなくてはならない.それにはNeeds["BarCharts`"]を実行する必要がある.
- データが1つしかない場合,スタイルは棒に循環的に使われる.データが複数ある場合は,スタイルはそれぞれのデータ内で循環的に使われる.
- 値が関数の場合,関数は各棒の高さに適用される.
例題
例 (1)
Needs["BarCharts`"]BarChart[{1, 1, 2, 3, 5, 8}, BarStyle -> Yellow]BarChart[{1, 1, 2, 3, 5, 8}, BarStyle -> {Yellow, Green}]スタイルを組み合せるときは,Directiveを使う:
BarChart[{1, 1, 2, 3, 5, 8}, BarStyle -> Directive[Yellow, Opacity[0.5]]]複数のデータ集合の場合は,集合ごとにスタイルが割り当てられる:
BarChart[RandomReal[{0.25, 1}, {3, 5}], BarStyle -> {Red, Green, Blue}]テキスト
Wolfram Research (2008), BarStyle, Wolfram言語関数, https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html.
CMS
Wolfram Language. 2008. "BarStyle." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html.
APA
Wolfram Language. (2008). BarStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html
BibTeX
@misc{reference.wolfram_2026_barstyle, author="Wolfram Research", title="{BarStyle}", year="2008", howpublished="\url{https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html}", note=[Accessed: 17-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_barstyle, organization={Wolfram Research}, title={BarStyle}, year={2008}, url={https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html}, note=[Accessed: 17-August-2026]}