BubbleChart3D[{{x1,y1,z1,u1},{x2,y2,z2,u2},…}]
位置{xi,yi,zi}における大きさが uiのバブルからなる3Dバブルチャートを作成する.
BubbleChart3D[{…,wi[{xi,yi,zi,ui},…],…,wj[{xj,yj,zj,uj},…],…}]
バブルの特徴を記号的ラッパー wkで定義した3Dバブルチャートを作成する.
BubbleChart3D[{data1,data2,…}]
複数のデータ集合 dataiから3Dバブルチャートを作成する.
BubbleChart3D
BubbleChart3D[{{x1,y1,z1,u1},{x2,y2,z2,u2},…}]
位置{xi,yi,zi}における大きさが uiのバブルからなる3Dバブルチャートを作成する.
BubbleChart3D[{…,wi[{xi,yi,zi,ui},…],…,wj[{xj,yj,zj,uj},…],…}]
バブルの特徴を記号的ラッパー wkで定義した3Dバブルチャートを作成する.
BubbleChart3D[{data1,data2,…}]
複数のデータ集合 dataiから3Dバブルチャートを作成する.
詳細とオプション
- BubbleChart3Dのデータ要素は次の形式で与えることができる.
-
{xi,yi,zi,ui} 純粋なバブルの値 {Quantity[xi,ux],Quantity[yi,uy],Quantity[zi,uz],Quantity[ui,uu]} 単位の付いたバブルの値 <|kxxi,kyyi,kzzi,kuui|> キーとバブルの値の連想 wi[{xi,yi,zi,ui},…] 値{xi,yi,zi,ui},ラッパー wiのバブル formi->mi メタデータ miのバブル形 - 値 ui は正でなければならない.
- これらの形式で与えられないデータは3Dバブルチャートの作成の際に無視される.
- BubbleChart3Dのデータ集合は次の形式で与えることができる.
-
{e1,e2,…} ラッパーがある/ない要素のリスト <|k1e1,k2e2,…|> キーと値の連想 TimeSeries[…],EventSeries[…],TemporalData[…] 時系列,事象系列,一時データ WeightedData[…] 拡張データ集合 w[{e1,e2,…},…] データ集合全体に適用されたラッパー w[{data1,data1,…},…] すべてのデータ集合に適用されたラッパー - BubbleChart3D[objcspec]は,列指定 cspec を用いて,Tabularオブジェクト,TimeSeriesオブジェクトまたはEventSeriesオブジェクト obj から値を抽出してプロットする.
- 次は,表形式データのプロットに使用可能な列指定 cspec の形式である.
-
{colx,coly,colz,colw} 列 x,y,z,w からのデータをプロットする {{colx1,coly1,colz1,colw1},{colx2,coly2,colz2,colw2},…} 列の複数集合をプロットする - グラフの要素に次のラッパーを使用することができる.
-
Annotation[e,label] 注釈を与える Button[e,action] 要素がクリックされたときに実行するアクションを定義する EventHandler[e,…] 要素の一般的なイベントハンドラを定義する Hyperlink[e,uri] 要素がハイパーリンクとして機能するようにする Labeled[e,…] 要素にラベルを付けて表示する Legended[e,…] グラフの説明文に要素の特徴を含む Mouseover[e,over] 要素がマウスオーバーの形式を示すようにする PopupWindow[e,cont] 要素にポップアップウィンドウを加える StatusArea[e,label] 要素の上にマウスが来たときにステータスエリアに表示する Style[e,opts] 要素を指定したスタイルで示す Tooltip[e,label] 要素に任意のツールチップを加える - BubbleChart3Dでは,LabeledとPlaced で次の位置が取れる.
-
Top,Bottom,Left,Right,Center, Front,Back バブル内の位置 Above,Below, Before, After バブルの外の位置 {{bx,by,bz},{lx,ly}} バブル内のスケールされた位置{bx,by,bz}のラベル内のスケールされた位置{lx,ly} - BubbleChart3DにはGraphics3Dと同じオプションに次の追加・変更を加えたものが使える. [全オプションのリスト]
-
Axes True 軸を描くかどうか AxesEdge {{-1, -1}, {1, -1}, {-1, -1}} どの辺に軸を描くか Boxed {Left,Bottom,Back} 境界ボックスにどの面に描くか BoxRatios {1,1,1} 境界3Dボックスの比 BubbleScale "Volume" バブルに使う大きさの特徴 BubbleSizes Automatic バブルに使う大きさの範囲 ChartElementFunction Automatic バブルの生のグラフィックスをどのように生成するか ChartElements Automatic 各バブルに使うグラフィックス ColorFunction Automatic バブルの彩色方法 ColorFunctionScaling True ColorFunctionの引数を正規化するかどうか FaceGrids Automatic 境界ボックスに描く格子線 LabelingFunction Automatic バブルにどのようにラベルを付けるか LegendAppearance Automatic 凡例の全体的な外観 Lighting "Neutral" 使用する擬似光源 PerformanceGoal $PerformanceGoal パフォーマンスのどの面について最適化するか PlotInteractivity $PlotInteractivity インタラクティブ要素を許可するかどうか PlotLabels None バブルのカテゴリラベル PlotLegends None データ要素とデータ集合の凡例 PlotStyle Automatic バブルのスタイル PlotTheme $PlotTheme グラフの全体的なテーマ ScalingFunctions None 個々の座標をどのようにスケールするか TargetUnits Automatic グラフ内に表示する単位 - ChartElements->g の設定では,g を引き延ばしたバージョンからなる絵を使ったバブルにグラフィックス g が使われる.
- PlotLegendsの典型的な設定には,次のものが含まれる.
-
None 凡例なし Automatic 凡例を自動的に決定する {lbl1,lbl2,…} lbl1,lbl2,… を凡例ラベルとして使用する Placed[lspec,…] 凡例の配置を指定する - PlotStylesty は,各曲線に使用するスタイルを指定する.可能な設定には次のものが含まれる.
-
{sty1,sty2,…} データに対するスタイルの列 <|"key"val,…|> データの異なるレベルに対するスタイル要素 - 使用可能なキーは次の通りである.
-
"Base" すべての棒に対する全体のスタイル "Elements" 各グループにおける要素 yi に対するスタイルのリスト "Groups" 値 datai の各グループに対するスタイルのリスト - ColorData["DefaultChartColors"] は,PlotStyle によって使用されるデフォルトの色の並びを与える.
- ChartElementFunctionに渡される引数は,ネストしたデータ集合リストにおける各レベルからのバブルの範囲{{xmin,xmax},{ymin,ymax},{zmin,zmax}},値{xi,yi,zi,ui},メタデータ{m1,m2,…}である.
- ChartElementFunctionの組込み設定のリストはChartElementData["BubbleChart3D"]で入手することができる.
- ColorFunctionに渡される引数は x,y,z,u である.
- BubbleChart3Dのオプションおよびその他の構造からのスタイルその他の指定は事実上PlotStyle,ColorFunction,Styleその他のラッパー,ChartElementsとChartElementFunctionの順に適用される.後ろの指定は前の指定を無効にする.
全オプションのリスト
例題
すべて開く すべて閉じる例 (3)
BubbleChart3D[RandomReal[1, {10, 4}]]BubbleChart3D[RandomReal[1, {5, 10, 4}]]BubbleChart3D[RandomReal[1, {5, 10, 4}], PlotStyle -> {RGBColor[0.237736, 0.340215, 0.575113], RGBColor[0.277947, 0.45009699999999997, 0.32815550000000004], RGBColor[0.624866, 0.673302, 0.264296], RGBColor[0.8453409999999999, 0.6248695, 0.3151775], RGBColor[0.72987, 0.239399, 0.230961]}]BubbleChart3D[RandomReal[1, {10, 4}], ChartElements -> [image]]BubbleChart3D[RandomReal[1, {10, 4}], ChartElementFunction -> "MarkerBubble3D"]スコープ (31)
データとラッパー (14)
BubbleChart3D[{Table[{i, i, i, 1}, {i, 3}], Table[{i, i, i + 1, 1}, {i, 3}], Table[{i, i, i + 2, 1}, {i, 3}]}]data = ReplacePart[Flatten[Table[{i, 2, j, 1}, {i, 4}, {j, 4}], 1], {3 -> Missing[], 6 -> 1 + I, 15 -> foo}]BubbleChart3D[data, PlotLabels -> Range[16]]BubbleChart3D[{{Quantity[8, "Feet"], Quantity[17, "Feet"], Quantity[3, "Feet"], Quantity[10, "Feet"]}, {Quantity[15, "Feet"], Quantity[19, "Feet"], Quantity[1, "Feet"], Quantity[23, "Feet"]}, {Quantity[2, "Feet"], Quantity[20, "Feet"], Quantity[15, "Feet"], Quantity[15, "Feet"]}, {Quantity[21, "Feet"], Quantity[6, "Feet"], Quantity[3, "Feet"], Quantity[25, "Feet"]}, {Quantity[12, "Feet"], Quantity[24, "Feet"], Quantity[4, "Feet"], Quantity[3, "Feet"]}, {Quantity[1, "Feet"], Quantity[15, "Feet"], Quantity[17, "Feet"], Quantity[5, "Feet"]}}, AxesLabel -> Automatic]BubbleChart3D[{{Quantity[8, "Feet"], Quantity[17, "Feet"], Quantity[3, "Feet"], Quantity[10, "Feet"]}, {Quantity[15, "Feet"], Quantity[19, "Feet"], Quantity[1, "Feet"], Quantity[23, "Feet"]}, {Quantity[2, "Feet"], Quantity[20, "Feet"], Quantity[15, "Feet"], Quantity[15, "Feet"]}, {Quantity[21, "Feet"], Quantity[6, "Feet"], Quantity[3, "Feet"], Quantity[25, "Feet"]}, {Quantity[12, "Feet"], Quantity[24, "Feet"], Quantity[4, "Feet"], Quantity[3, "Feet"]}, {Quantity[1, "Feet"], Quantity[15, "Feet"], Quantity[17, "Feet"], Quantity[5, "Feet"]}}, AxesLabel -> Automatic, TargetUnits -> {"Meters", "Yards", "Feet", "Inches"}]TimeSeries,EventSeries,TemporalData内のタイムスタンプは無視される:
BubbleChart3D[TimeSeries[{{19, 14, 23, 12}, {17, 14, 23, 21}, {22, 9, 8, 14}, {16, 16, 22, 25}, {24, 24, 13, 22}, {24, 11, 2, 3}}, {"May 24, 1982"}]]BubbleChart3D[<|"a" -> {2, 1, 5, 2}, "b" -> {2, 3, 1, 4}, "c" -> {7, 3, 3, 6}, "d" -> {4, 1, 3, 5}|>]BubbleChart3D[<|"a" -> {2, 1, 5, 2}, "b" -> {2, 3, 1, 4}, "c" -> {7, 3, 3, 6}, "d" -> {4, 1, 3, 5}|>, PlotLabels -> Automatic]BubbleChart3D[<|"a" -> {2, 1, 5, 2}, "b" -> {2, 3, 1, 4}, "c" -> {7, 3, 3, 6}, "d" -> {4, 1, 3, 5}|>, PlotLegends -> Automatic, PlotStyle -> {Hue[0.61, 0.7, 1], Hue[0.17, 0.4, 0.65], Hue[0.64, 0.5, 0.75], Hue[0.45, 0.4, 0.7]}]BubbleChart3D[<|"a" -> <|"x" -> 2, "y" -> 1, "z" -> 5, "u" -> 2|>, "b" -> <|"x" -> 2, "y" -> 3, "z" -> 1, "u" -> 4|>, "c" -> <|"x" -> 7, "y" -> 3, "z" -> 3, "u" -> 6|>, "d" -> <|"x" -> 4, "y" -> 1, "z" -> 3, "u" -> 5|>|>, PlotLegends -> Automatic, PlotStyle -> {Hue[0.61, 0.7, 1], Hue[0.17, 0.4, 0.65], Hue[0.64, 0.5, 0.75], Hue[0.45, 0.4, 0.7]}, AxesLabel -> Automatic]BubbleChart3D[<|"group1" -> <|"a" -> {2, 1, 5, 2}, "b" -> {2, 3, 1, 4}, "c" -> {7, 3, 3, 6}, "d" -> {4, 1, 3, 5}|>, "group2" -> <|"a" -> {2, 3, 8, 1}, "b" -> {1, 3, 2, 6}, "c" -> {5, 3, 3, 6}, "d" -> {4, 2, 6, 6}|>|>, PlotLegends -> Automatic, PlotStyle -> {Hue[0.08, 1, 1], Hue[0.17, 0.8, 0.5], Hue[0, 1, 0.8], Hue[0.06, 1, 0.8]}]WeightedData中の重みは無視される:
BubbleChart3D[WeightedData[{{6, 17, 16, 1}, {15, 15, 16, 8}, {19, 15, 10, 5}, {13, 11, 4, 8}, {8, 20, 5, 15}, {17, 3, 7, 2}}, {0.4, 0.2, 0.6, 0.3, 0.4, 0.3}]]個々のデータ,データ集合,データ集合の集合にラッパーを使う:
{d1, d2, d3} = {{1, 1, 1, 1}, {2, 1, 1, 1}, {3, 1, 1, 1}};
{e1, e2, e3} = {{1, 2, 2, 1}, {2, 2, 2, 1}, {3, 2, 2, 1}};{BubbleChart3D[{{d1, d2, d3}, {e1, Style[e2, RGBColor[0.93, 0.27, 0.27]], e3}}], BubbleChart3D[{{d1, d2, d3}, Style[{e1, e2, e3}, RGBColor[0.93, 0.27, 0.27]]}], BubbleChart3D[Style[{{d1, d2, d3}, {e1, e2, e3}}, RGBColor[0.93, 0.27, 0.27]]]}{d1, d2, d3} = {{1, 1, 1, 1}, {2, 1, 1, 1}, {3, 1, 1, 1}};
{e1, e2, e3} = {{1, 2, 2, 1}, {2, 2, 2, 1}, {3, 2, 2, 1}};{BubbleChart3D[{{d1, d2, d3}, {e1, Style[e2, RGBColor[0.93, 0.27, 0.27]], e3}}, PlotStyle -> GrayLevel[0.62]], BubbleChart3D[{{d1, d2, d3}, Style[{e1, Style[e2, RGBColor[0.93, 0.27, 0.27]], e3}, RGBColor[0.14, 0.8, 0.14]]}, PlotStyle -> GrayLevel[0.62]], BubbleChart3D[Style[{{d1, d2, d3}, Style[{e1, Style[e2, RGBColor[0.93, 0.27, 0.27]], e3}, RGBColor[0.14, 0.8, 0.14]]}, RGBColor[0.4, 0.6, 1]], PlotStyle -> GrayLevel[0.62]]}BubbleChart3D[{{1, 1, 1, 1}, Tooltip[{2, 2, 2, 2}, "median"], {3, 3, 3, 3}}]BubbleChart3D[Table[Tooltip[{CountryData[c, #]& /@ {"Area", "GovernmentConsumption", "GDP", "Population"}}, CountryData[c, "Flag"]], {c, CountryData["G8"]}], ImageSize -> Medium]PopupWindowを使って追加的なドリルダウン情報を提供する:
BubbleChart3D[{{1, 1, 1, 1}, {2, 2, 2, 2}, PopupWindow[{3, 3, 3, 3}, DateListPlot[FinancialData["IBM", "Jan. 1, 2004"]]]}]Buttonを使ってアクションを開始することができる:
BubbleChart3D[{{1, 1, 1, 1}, {2, 2, 2, 2}, Button[{3, 3, 3, 3}, Speak[2]]}]表形式データ (3)
cars = ResourceData["Sample Tabular Data: Car Models"]排気量と重量に対して馬力をプロットし,走行距離に応じてバブルのサイズを設定する:
BubbleChart3D[cars -> {"displacement", "weight", "horsepower", "mpg"}]pivot = PivotToColumns[cars, "origin" -> "mpg"]BubbleChart3D[pivot -> {{"displacement", "weight", "horsepower", ExtendedKey["mpg", "europe"]}, {"displacement", "weight", "horsepower", ExtendedKey["mpg", "japan"]}, {"displacement", "weight", "horsepower", ExtendedKey["mpg", "usa"]}}, PlotLegends -> {"Europe", "Japan", "USA"}]TimeSeriesまたはEventSeriesの全成分の値をプロットする:
BubbleChart3D[TimeSeries[TimeEventSeries`TimestampData[Association["UniformlySpacedQ" -> True, "Count" -> 5,
"Endpoints" -> TabularColumn[Association[
"Data" -> {2, {{NumericArray[{20563, -2147483648}, "Integer32"], {},
DataStructure["BitVec ... TabularColumn[Association["Data" -> {{3, 2, 2, 1, 1}, {}, None},
"ElementType" -> "Integer64"]], TabularColumn[Association[
"Data" -> {{1, 2, 1, 5, 3}, {}, None}, "ElementType" -> "Integer64"]]}}]]]],
Association[]]]TimeSeriesまたはEventSeriesの成分の値をプロットする:
ts = TimeSeries[TimeEventSeries`TimestampData[Association["UniformlySpacedQ" -> True, "Count" -> 10,
"Endpoints" -> TabularColumn[Association[
"Data" -> {2, {{NumericArray[{20563, -2147483648}, "Integer32"], {},
DataStructure["BitVe ... 4557913726,
54.91958809978361, 63.166118763886644, 49.626260528201, 66.72362173609423,
36.22977790380919, 45.64568338043069, 77.30906172879072}, {}, None},
"ElementType" -> "Real64"]]}}]]]], Association[]];BubbleChart3D[ts -> {"a1", "b1", "c1", "d1"}]BubbleChart3D[ts -> {{"a1", "b1", "c1", "d1"}, {"a2", "b2", "c2", "d2"}}]スタイルと外観 (7)
BubbleChart3D[RandomReal[1, {3, 5, 4}], PlotStyle -> {RGBColor[0.93, 0.27, 0.27], RGBColor[0.14, 0.8, 0.14], RGBColor[0.4, 0.6, 1]}]PlotStyleはすべてのグラフ要素の初期スタイルを設定することができる:
BubbleChart3D[RandomReal[1, {3, 5, 4}], PlotStyle -> <|"Base" -> Opacity[0.6], "Elements" -> {RGBColor[0.855879, 0.665019, 0.302953], RGBColor[0.780926, 0.753979, 0.604883], RGBColor[0.807065, 0.511589, 0.285222]}|>]Styleを使ってスタイルを無効にすることができる:
BubbleChart3D[{{1, 1, 1, 1}, {2, 2, 2, 2}, Style[{3, 3, 3, 3}, RGBColor[0.93, 0.27, 0.27]], {3, 4, 1, 1}}, PlotStyle -> GrayLevel[0.62]]BubbleChart3D[{{1, 1, 1, 1}, {2, 2, 2, 2}, {3, 3, 3, 3}}, ChartElements -> Graphics3D[Cylinder[]]]ChartElementData["BubbleChart3D"]Table[BubbleChart3D[{{1, 1, 1, 1}, {2, 2, 2, 2}, {3, 3, 3, 3}}, ChartElementFunction -> f, PlotStyle -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.9584254999999999, 0.877884, 0.5906629999999999], RGBColor[0.431296, 0.709773, 0.927077]}], {f, {"PolyhedronBubble3D", "MarkerBubble3D"}}]詳細設定には「パレット」▶「チャートエレメントスキーム」を使う:
BubbleChart3D[{{1, 1, 1, 1}, {2, 2, 2, 2}, {3, 3, 3, 3}}, ChartElementFunction -> ChartElementDataFunction["MarkerBubble3D", "Shape" -> "Cylinder", "Marker" -> "Cuboid", "MarkerColor" -> RGBColor[1, 0.75, 0]]]BubbleChart3D[RandomReal[1, {3, 5, 4}], PlotTheme -> "Marketing"]BubbleChart3D[RandomReal[1, {3, 5, 4}], PlotTheme -> "Web"]ラベルと凡例 (7)
Labeledを使ってバブルにラベルを付ける:
BubbleChart3D[{{1, 1, 1, 1}, Labeled[{2, 2, 2, 2}, Framed["label", FrameMargins -> 1, Background -> RGBColor[1, 0.75, 0]], Left], {3, 3, 3, 3}}]Table[BubbleChart3D[{{1, 1, 1, 1}, Labeled[{2, 2, 2, 2}, "label", p], {3, 3, 3, 3}}, BubbleSizes -> {0.2, 0.4}, PlotLabel -> p, Ticks -> None], {p, {Bottom, Center, Top}}]BubbleChart3D[{{{1, 1, 1, 1}, {2, 2, 2, 2}}, {{3, 3, 3, 3}, {4, 4, 4, 4}}}, PlotLabels -> <|"Elements" -> {"c1", "c2"}|>]LabelingFunctionを使ってバブルに値のラベルを与える:
BubbleChart3D[{{{1, 1, 1, 1}, {2, 2, 2, 2}}, {{3, 3, 3, 3}, {4, 4, 4, 4}}}, PlotRange -> All, LabelingFunction -> Above]Placedを使って置き方とフォーマットを制御する:
labeler[v_, {i_, j_}, {ri_, cj_}] := Placed[{v, ri[[1]], cj[[1]]}, Tooltip, Row[#, ","]&]BubbleChart3D[{{{1, 1, 1, 1}, {2, 2, 2, 2}}, {{3, 3, 3, 3}, {4, 4, 4, 4}}}, PlotLabels -> <|"Groups" -> {"r1", "r2"}, "Elements" -> {"c1", "c2", "c3"}|>, FaceGrids -> None, PlotRange -> All, LabelingFunction -> labeler]BubbleChart3D[RandomReal[1, {2, 3, 4}], PlotLegends -> <|"Groups" -> {"data1", "data2"}|>, PlotStyle -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.431296, 0.709773, 0.927077]}]Legendedを使って追加的な凡例項目を加える:
BubbleChart3D[{{{1, 1, 1, 1}, Legended[Style[{2, 2, 2, 2}, RGBColor[0.93, 0.27, 0.27]], "extra"]}, {{3, 3, 3, 3}, {4, 4, 4, 4}}}, PlotStyle -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.431296, 0.709773, 0.927077]}, PlotLegends -> {"aaa", "bbb"}]Placedを使って凡例の置き方に影響を与える:
Table[BubbleChart3D[{{{1, 1, 1, 1}, {2, 2, 2, 2}}, {{3, 3, 3, 3}, {4, 4, 4, 4}}}, PlotLegends -> Placed[{"data1", "data2"}, p], PlotStyle -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.431296, 0.709773, 0.927077]}], {p, {Below, Above}}]オプション (87)
Axes (3)
デフォルトで,BubbleChart3Dは軸を描く:
BubbleChart3D[IconizedObject[«data»]]BubbleChart3D[IconizedObject[«data»], Axes -> False]{BubbleChart3D[IconizedObject[«data»], Axes -> {True, False, False}], BubbleChart3D[IconizedObject[«data»], Axes -> {False, True, False}], BubbleChart3D[IconizedObject[«data»], Axes -> {False, False, True}]}AxesOrigin (2)
AxesStyle (4)
BubbleChart3D[IconizedObject[«data»], AxesStyle -> RGBColor[0.93, 0.27, 0.27]]BubbleChart3D[IconizedObject[«data»], AxesStyle -> {{Thick, RGBColor[0.67, 0.54, 0.42]}, {Thick, RGBColor[0.4, 0.6, 1]}, {Thick, RGBColor[0.14, 0.8, 0.14]}}]BubbleChart3D[IconizedObject[«data»], AxesStyle -> RGBColor[0.14, 0.8, 0.14], TicksStyle -> RGBColor[0.4, 0.6, 1]]BubbleChart3D[IconizedObject[«data»], AxesStyle -> RGBColor[0.14, 0.8, 0.14], LabelStyle -> RGBColor[0.4, 0.6, 1]]AxesLabel (4)
BubbleChart3D[IconizedObject[«data»], Axes -> True]BubbleChart3D[IconizedObject[«data»], Axes -> True, AxesLabel -> "Z-axis"]BubbleChart3D[IconizedObject[«data»], Axes -> True, AxesLabel -> {"X", "Y", "Z"}]BubbleChart3D[QuantityArray[IconizedObject[«data»], "Meters"]
, Axes -> True, AxesLabel -> Automatic]BubbleScale (2)
BubbleSizes (1)
ChartElementFunction (5)
ChartElementFunctionの組込み設定のリストを得る:
ChartElementData["BubbleChart3D"]詳細設定には「パレット」▶「チャートエレメントスキーム」を使う:
data = {{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}};Table[BubbleChart3D[data, ChartElementFunction -> f, PlotStyle -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.9584254999999999, 0.877884, 0.5906629999999999], RGBColor[0.431296, 0.709773, 0.927077]}, PlotLabel -> f], {f, {"Bubble3D", "MarkerBubble3D"}}]Table[BubbleChart3D[data, ChartElementFunction -> f, PlotStyle -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.9584254999999999, 0.877884, 0.5906629999999999], RGBColor[0.431296, 0.709773, 0.927077]}, PlotLabel -> f], {f, {"ProfileCube", "PolyhedronBubble3D"}}]カスタマイズされたChartElementFunctionを書く:
f[{{xmin_, xmax_}, {ymin_, ymax_}, {zmin_, zmax_}}, v_, meta_] :=
{Cuboid[{xmin, ymin, zmin}, {xmax, ymax, zmax}]}BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, ChartElementFunction -> f]入力から渡されたメタデータ,この場合はデータのグラフ化を使う:
DataDrilldownBubble[box_, v_, {meta_}] :=
PopupWindow[ChartElementData["Cylinder"][box, v, {}], PieChart[meta]]DataDrilldownBubble[box_, v_, ___] :=
ChartElementData["Cube"][box, v]BubbleChart3D[{{1, 0, 1, 1} -> Range[5], {0, 1, 2, 2}, {2, 2, 3, 3} -> RandomReal[1, 10]}, ChartElementFunction -> DataDrilldownBubble]組込みの要素関数にはオプションがあるかもしれない.「パレット」▶「チャートエレメントスキーム」を使って見てみる:
ChartElementData["MarkerBubble3D", "Options"]Table[BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, ChartElementFunction -> ChartElementDataFunction["MarkerBubble3D", "Shape" -> s[[1]], "Marker" -> s[[2]], "MarkerColor" -> RGBColor[1, 0.75, 0]]], {s, {{"Sphere", "Cylinder"}, {"Cuboid", "Sphere"}}}]ChartElements (6)
任意のGraphics3Dオブジェクトに基づいた絵を使ったグラフを作成する:
BubbleChart3D[{{1, 2, 3, 4}, {3, 2, 1, 3}, {3, 1, 1, 2}}, ChartElements -> Graphics3D[Cone[]]]data = RandomReal[1, {3, 4}];{data1, data2, data3} = {data, data + 1, data + 2};BubbleChart3D[{data1, data2, data3}, ChartElements -> {[image], [image], [image]}]BubbleChart3D[{data1, data2, data3}, ChartElements -> {{[image], [image], [image]}, None}]BubbleChart3D[Table[{i, i, i, 1}, {i, 5}], ChartElements -> {[image], [image]}]スタイルはChartStyle等を通してスタイルセットから継承される:
BubbleChart3D[RandomReal[1, {3, 5, 4}], ChartElements -> [image], PlotStyle -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.9584254999999999, 0.877884, 0.5906629999999999], RGBColor[0.431296, 0.709773, 0.927077]}]Styleを使って個々のスタイルを無効にする:
BubbleChart3D[{{{1, 2, 3, 4}, Style[{3, 2, 1, 3}, RGBColor[0.93, 0.27, 0.27]], {3, 1, 1, 2}}}, BubbleSizes -> {0.2, 0.4}, ChartElements -> [image], PlotStyle -> GrayLevel[0.62]]グラフィックス中の明示的なスタイルはその他のスタイル設定を無効にする:
BubbleChart3D[{{{1, 2, 3, 4}, {3, 2, 1, 3}, {3, 1, 1, 2}}}, BubbleSizes -> {0.2, 0.4}, ChartElements -> [image], PlotStyle -> GrayLevel[0.62]]ColorFunction (4)
BubbleChart3D[RandomInteger[10, {2, 10, 4}], ColorFunction -> Function[{x, y, z, r}, Lighter[RGBColor[0.14, 0.8, 0.14], x]]]ColorFunctionScaling->Falseを使ってスケールされていない高さの値を得る:
BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, ColorFunction -> Function[{x, y, z, r}, Switch[{x, y, z, r}, {1, 0, 1, 1}, RGBColor[1, 0.75, 0], {0, 1, 2, 2}, RGBColor[0.98, 0.56, 0.17], {2, 2, 3, 3}, RGBColor[0.93, 0.27, 0.27]]], ColorFunctionScaling -> False]ColorFunctionはPlotStyleのスタイルを無効にすることがある:
BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, PlotStyle -> RGBColor[0.14, 0.8, 0.14], ColorFunction -> "SolarColors"]ColorFunctionを使って異なるスタイル効果を組み合せる:
BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, PlotStyle -> <|"Elements" -> {Opacity[0.2], Specularity[1, 20], Glow[RGBColor[0.93, 0.27, 0.27]]}|>, ColorFunction -> (RGBColor[0.4, 0.6, 1]&)]ColorFunctionScaling (2)
BubbleChart3D[{{1, 1, 1, 1}, {2, 2, 2, 2}, {3, 3, 3, 3}}, ColorFunction -> Function[{x, y, z, r}, GrayLevel[r]]]ColorFunctionScaling->Falseを使ってスケールされていない高さの値を得る:
BubbleChart3D[{{1, 2, 3, 4}, {3, 2, 1, 3}, {3, 1, 1, 2}}, ColorFunction -> Function[{x, y, z, r}, Switch[{x, y, z, r}, {1, 2, 3, 4}, RGBColor[1, 0.75, 0], {3, 2, 1, 3}, RGBColor[0.98, 0.56, 0.17], {3, 1, 1, 2}, RGBColor[0.93, 0.27, 0.27]]], ColorFunctionScaling -> False]ImageSize (7)
Tiny,Small,Medium,Largeのような名前付きのサイズを使う:
{BubbleChart3D[IconizedObject[«data»], ImageSize -> Tiny], BubbleChart3D[IconizedObject[«data»], ImageSize -> Small]}{BubbleChart3D[IconizedObject[«data»], ImageSize -> 150], BubbleChart3D[IconizedObject[«data»], AspectRatio -> 1.5, ImageSize -> 150]}{BubbleChart3D[IconizedObject[«data»], ImageSize -> {Automatic, 150}], BubbleChart3D[IconizedObject[«data»], AspectRatio -> 2, ImageSize -> {Automatic, 150}]}{BubbleChart3D[IconizedObject[«data»], ImageSize -> UpTo[200]], BubbleChart3D[IconizedObject[«data»], AspectRatio -> 2, ImageSize -> UpTo[200]]}グラフィックスの幅と高さを指定し,必要な場合は空白で充填する:
BubbleChart3D[IconizedObject[«data»], ImageSize -> {200, 200}, Background -> RGBColor[0.4, 0.6, 1]]AspectRatioFullと設定すると使用可能な空間が埋められる:
BubbleChart3D[IconizedObject[«data»], AspectRatio -> Full, ImageSize -> {200, 200}, Background -> RGBColor[0.4, 0.6, 1]]{BubbleChart3D[IconizedObject[«data»], ImageSize -> {UpTo[200], UpTo[150]}], BubbleChart3D[IconizedObject[«data»], AspectRatio -> 2, ImageSize -> {UpTo[200], UpTo[150]}]}ImageSizeFullを使ってオブジェクト内の使用可能な空間を埋める:
Framed[Pane[BubbleChart3D[IconizedObject[«data»], ImageSize -> Full, Background -> RGBColor[0.4, 0.6, 1]], {200, 100}]]Framed[Pane[BubbleChart3D[IconizedObject[«data»], AspectRatio -> Full, ImageSize -> {Scaled[0.5], Scaled[0.5]}, Background -> RGBColor[0.4, 0.6, 1]], {200, 200}]]LabelingFunction (7)
TooltipとStatusAreaからの値で自動的なラベル付けを使う:
BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, LabelingFunction -> Automatic]BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, LabelingFunction -> None]Placedを使ってラベルの置き方を制御する:
Table[BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, LabelingFunction -> p, PlotLabel -> p, Ticks -> None], {p, {Bottom, Center, Top}}]Table[BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, LabelingFunction -> p, PlotLabel -> p, Ticks -> None], {p, {Left, Right}}]Table[BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, LabelingFunction -> p, PlotLabel -> p, Ticks -> None], {p, {Below, Above}}]Table[BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, PlotRange -> All, LabelingFunction -> p, PlotLabel -> p, Ticks -> None], {p, {Before, After}}]Table[BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, PlotRange -> All, LabelingFunction -> p, PlotLabel -> p, Ticks -> None], {p, {{0, 0, 0}, {0.5, 0.5, 0.5}, {1, 1, 1}}}]BubbleChart3D[{{1, 0, 1, 1}, {0, 1, 2, 2}, {2, 2, 3, 3}}, PlotRange -> All, LabelingFunction -> (Placed[MatrixForm[#1], Tooltip]&)]bubbleLabel[v : {x_, y_, z_, w_}, level_, {r_, c_}] := Placed[Grid[{{Row[{r[[1]], c[[1]], "Fund"}, " "], SpanFromLeft}, {"Age", x}, {"Return %", y}, {"Expense %", z}, {"Market Cap", w}}, Frame -> All, Alignment -> Left], Tooltip]data = {{{1, 11, 1.5, 300}, {2, 50, 0.12, 200}, {3, 20, 1.2, 300}}, {{6, 20, 1.5, 300}, {2, 8, 1.1, 600}, {6, 16, 0.5, 500}}};BubbleChart3D[data, PlotLabels -> <|"Groups" -> {"Growth", "Value"}, "Elements" -> Placed[{"Small-Cap", "Mid-Cap", "Large-Cap"}, None]|>, LabelingFunction -> bubbleLabel]PerformanceGoal (1)
data = RandomReal[1, {3, 5, 4}];BubbleChart3D[data, PerformanceGoal -> "Quality"]インタラクティブな動作を使用不可にしてパフォーマンスを向上させる:
BubbleChart3D[data, PerformanceGoal -> "Speed"]一般に,インタラクティブではないグラフの方がメモリが少なくて済む:
Table[ByteCount@BubbleChart3D[data, PerformanceGoal -> p], {p, {"Quality", "Speed"}}]PlotInteractivity (4)
バブルの数がそれほど多くないグラフには,ツールチップとマウスオーバー効果が自動的に付けられる:
BubbleChart3D[{{1, 1, 1, 1}, {2, 2, 2, 2}, {3, 3, 3, 3}}]BubbleChart3D[{{1, 1, 1, 1}, {2, 2, 2, 2}, {3, 3, 3, 3}}, PlotInteractivity -> False]入力の一部として与えられたインタラクティブ要素を無効にする:
BubbleChart3D[{{1, 1, 1, 1}, {2, 2, 2, 2}, Tooltip[{3, 3, 3, 3}, "hello"]}, PlotInteractivity -> False]与えたインタラクティブ要素は有効にして,自動のものは無効にする:
BubbleChart3D[{{1, 1, 1, 1}, {2, 2, 2, 2}, Tooltip[{3, 3, 3, 3}, "hello"]}, PlotInteractivity -> <|"User" -> True, "System" -> False|>]PlotLabels (8)
BubbleChart3D[RandomReal[1, {4, 4}], PlotLabels -> {"a", "b", "c", "d"}]デフォルトで ,ラベルはデータ要素またはグループに自動的に関連付けられる:
{BubbleChart3D[RandomReal[1, {3, 4}], PlotLabels -> {"c1", "c2", "c3"}],
BubbleChart3D[RandomReal[1, {3, 3, 4}], PlotLabels -> {"r1", "r2", "r3"}]}BubbleChart3D[RandomReal[1, {2, 3, 4}], PlotLabels -> <|"Elements" -> {"c1", "c2", "c3"}|>]BubbleChart3D[RandomReal[1, {2, 3, 4}], PlotLabels -> <|"Groups" -> {"r1", "r2"}, "Elements" -> {"c1", "c2", "c3"}|>]データ内のLabeled ラッパーは,追加のラベルを配置する:
data = {{1, 0, 1, 1}, Labeled[{0, 1, 1, 2}, "label", Below], {2, 2, 2, 3}};BubbleChart3D[data, PlotLabels -> {"a", "b", "c"}]Placedを使って配置に影響を与える:
data = {{1, 1, 0, 1}, {1, 0, 1, 2}, {0, 2, 2, 3}};BubbleChart3D[data, PlotLabels -> <|"Groups" -> Placed[{"r1", "r2"}, Center], "Elements" -> Placed[{"c1", "c2", "c3"}, Below]|>]Table[BubbleChart3D[{{1, 1, 0, 1}, {1, 0, 1, 2}, {2, 2, 1, 3}}, PlotLabels -> Placed[{"a", "b", "c"}, p], PlotLabel -> p, Ticks -> None], {p, {Below, Above}}]Table[BubbleChart3D[{{1, 1, 0, 1}, {1, 0, 1, 2}, {2, 2, 1, 3}}, PlotLabels -> Placed[{"a", "b", "c"}, p], PlotLabel -> p, Ticks -> None], {p, {Before, After}}]Table[BubbleChart3D[{{1, 1, 0, 1}, {1, 0, 1, 2}, {2, 2, 1, 3}}, PlotLabels -> Placed[{"aa", "bb", "cc"}, p], PlotLabel -> p], {p, {{0, 0, 0}, {1 / 2, 1 / 2, 1 / 2}, {1, 1, 1}}}]すべてのラベルを右上隅に配置し,ラベル内の座標を変化させる:
Table[BubbleChart3D[{{1, 1, 0, 1}, {1, 0, 1, 2}, {2, 2, 1, 3}}, PlotLabels -> Placed[Framed /@ {"aa", "bb", "cc"}, {{1, 1, 1}, p}], Ticks -> None, PlotLabel -> p], {p, {{0, 0}, {1 / 2, 1 / 2}, {1, 1}}}]Placed の第3引数を使ってフォーマットを制御する:
BubbleChart3D[{{1, 1, 0, 1}, {1, 0, 1, 2}, {2, 2, 1, 3}}, BubbleSizes -> {0.3, 0.4}, PlotLabels -> Placed[{"aaa", "bbb", "ccc"}, Center, Rotate[#, 45Degree]&]]BubbleChart3D[{{1, 1, 0, 1}, {1, 0, 1, 2}, {2, 2, 1, 3}}, BubbleSizes -> {0.3, 0.4}, PlotLabels -> Placed[{"aaa", "bbb", "ccc"}, Center, Panel[#, FrameMargins -> 0]&]]BubbleChart3D[{{1, 1, 0, 1}, {1, 0, 1, 2}, {2, 2, 1, 3}}, PlotLabels -> Placed[{"aaa", "bbb", "ccc"}, Center, Hyperlink[#, "http://www.wolfram.com"]&]]BubbleChart3D[{{1, 1, 0, 1}, {1, 0, 1, 2}, {2, 2, 1, 3}}, PlotLabels -> Placed[{"aaa", "bbb", "ccc"}, Center, Rotate[#, Pi / 4]&]]BubbleChart3D[RandomReal[1, {2, 3, 4}], PlotLabels -> <|"Groups" -> Placed[{"r1", "r2"}, Above], "Elements" -> Placed[{"c1", "c2", "c3"}, Center]|>]Placedを使って複数のラベルを置く:
BubbleChart3D[{{1, 1, 0, 1}, {1, 0, 1, 2}, {2, 2, 1, 3}}, BubbleSizes -> {0.4, 0.6}, PlotLabels -> Placed[{{"a", "b", "c"}, {"x", "y", "z"}}, {Top, Bottom}, Framed[#, FrameMargins -> 1, Background -> RGBColor[1, 0.75, 0]]&]]PlotLegends (7)
data = {{{1, 0, 0, 3}, {0, 1, 0, 2}, {1, 2, 0, 3}}, {{5, 4, 1, 5}, {4, 5, 1, 6}, {5, 6, 1, 5}}};BubbleChart3D[data, PlotLegends -> <|"Elements" -> {"ccc1", "ccc2", "ccc3"}|>, PlotStyle -> <|"Elements" -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.9584254999999999, 0.877884, 0.5906629999999999], RGBColor[0.431296, 0.709773, 0.927077]}|>]BubbleChart3D[data, PlotLegends -> <|"Groups" -> {"rr1", "rr2"}|>, PlotStyle -> <|"Groups" -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.431296, 0.709773, 0.927077]}|>]Legendedを使って追加の凡例項目を加える:
data = {{{1, 0, 0, 3}, Legended[Style[{0, 1, 0, 2}, RGBColor[0.93, 0.27, 0.27]], "aa"], {1, 2, 0, 3}}, {{5, 4, 1, 1}, {4, 5, 1, 6}, {5, 6, 1, 5}}};BubbleChart3D[data, PlotStyle -> <|"Elements" -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.9584254999999999, 0.877884, 0.5906629999999999], RGBColor[0.431296, 0.709773, 0.927077]}|>, PlotLegends -> <|"Elements" -> {"ccc1", "ccc2", "ccc3"}|>]Legendedを使っていくつかの凡例項目を指定する:
data = {{1, 0, 0, 3}, Legended[{0, 1, 0, 2}, "aa"], {1, 2, 0, 3}, {5, 4, 1, 5}, Legended[{4, 5, 1, 6}, "bb"], {2, 6, 1, 5}};BubbleChart3D[data, PlotStyle -> <|"Elements" -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.8750956, 0.6580038, 0.746929], RGBColor[0.9440982, 0.7955892, 0.5942686], RGBColor[0.9537862, 0.937389, 0.6180996], RGBColor[0.7952328000000001, 0.8988539999999999, 0.8302508], RGBColor[0.431296, 0.709773, 0.927077]}|>]data = {{{1, 0, 0, 3}, {0, 1, 0, 2}, {1, 2, 0, 3}}, {{5, 4, 1, 5}, {4, 5, 1, 6}, {2, 6, 1, 5}}};BubbleChart3D[data, PlotLegends -> <|"Groups" -> {"Group A", "Group B"}|>, PlotStyle -> <|"Groups" -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.431296, 0.709773, 0.927077]}|>]data = {{{1, 0, 0, 3}, {0, 1, 0, 2}, {1, 2, 0, 3}}, {{5, 4, 1, 5}, {4, 5, 1, 6}, {2, 6, 1, 5}}};BubbleChart3D[data, PlotLegends -> <|"Groups" -> {"Group A", "Group B", "Group C"}|>, PlotStyle -> <|"Groups" -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.431296, 0.709773, 0.927077]}|>]data = {{{1, 0, 0, 3}, {0, 1, 0, 2}, {1, 2, 0, 3}}, {{5, 4, 1, 5}, {4, 5, 1, 6}, {2, 6, 1, 5}}};BubbleChart3D[data, PlotLegends -> <|"Groups" -> {"Test A", "Test B"}, "Elements" -> {"John", "Mary", "Bob"}|>, PlotStyle -> <|"Elements" -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.9584254999999999, 0.877884, 0.5906629999999999], RGBColor[0.431296, 0.709773, 0.927077]}, "Groups" -> {Opacity[0.2], Opacity[0.9]}|>]Placedを使って凡例の配置を制御する:
data = {{{1, 0, 0, 3}, {0, 1, 0, 2}, {1, 2, 0, 3}}, {{5, 4, 1, 5}, {4, 5, 1, 6}, {2, 6, 1, 5}}};Table[BubbleChart3D[data, PlotLegends -> <|"Elements" -> Placed[{"John", "Mary", "Bob"}, pos]|>, PlotStyle -> <|"Elements" -> {RGBColor[0.761959, 0.470832, 0.940597], RGBColor[0.9584254999999999, 0.877884, 0.5906629999999999], RGBColor[0.431296, 0.709773, 0.927077]}|>], {pos, {Below, Above, Before, After}}]PlotStyle (10)
BubbleChart3D[{{1, 2, 3, 10}, {3, 2, 1, 7}, {3, 1, 1, 3}, {1, 1, 1, 1}}, PlotStyle -> {RGBColor[0.93, 0.27, 0.27], RGBColor[0.14, 0.8, 0.14], RGBColor[0.4, 0.6, 1], RGBColor[1, 0.75, 0]}]BubbleChart3D[{{1, 2, 3, 10}, {3, 2, 1, 7}, {3, 1, 1, 3}, {1, 1, 1, 1}}, PlotStyle -> Opacity[0.4]]BubbleChart3D[RandomReal[1, {3, 5, 4}], PlotStyle -> {RGBColor[0.93, 0.27, 0.27], RGBColor[0.14, 0.8, 0.14], RGBColor[0.4, 0.6, 1]}]BubbleChart3D[{{1, 2, 3, 10}, {3, 2, 1, 7}, {3, 1, 1, 3}}, PlotStyle -> <|"Elements" -> {RGBColor[0.93, 0.27, 0.27], RGBColor[0.14, 0.8, 0.14]}|>]data = {RandomReal[{1, 2}, {3, 4}], RandomReal[{2, 3}, {3, 4}]};BubbleChart3D[data, PlotStyle -> <|"Elements" -> {RGBColor[0.93, 0.27, 0.27], RGBColor[0.14, 0.8, 0.14], RGBColor[0.4, 0.6, 1]}|>]BubbleChart3D[data, PlotStyle -> <|"Groups" -> {RGBColor[0.93, 0.27, 0.27], RGBColor[0.14, 0.8, 0.14]}|>]BubbleChart3D[data, PlotStyle -> <|"Base" -> {Specularity[White, 100]}|>]BubbleChart3D[data, PlotStyle -> <|"Groups" -> {Opacity[.2], Opacity[.9]}, "Elements" -> {RGBColor[0.93, 0.27, 0.27], RGBColor[0.14, 0.8, 0.14], RGBColor[0.4, 0.6, 1]}|>]要素スタイルとグループスタイルの両方が指定されている場合には,要素スタイルがグループスタイルを上書きすることがある:
data = {RandomReal[{1, 2}, {3, 4}], RandomReal[{2, 3}, {3, 4}]};BubbleChart3D[data, PlotStyle -> <|"Elements" -> {RGBColor[0.93, 0.27, 0.27], RGBColor[0.14, 0.8, 0.14], RGBColor[0.4, 0.6, 1]}, "Groups" -> {RGBColor[1, 0.75, 0], RGBColor[0.95, 0.43, 0.96]}|>]BubbleChart3D[{{1, 2, 3, 4}, Style[{3, 2, 1, 3}, Opacity[0.3]], {3, 1, 1, 2}}, PlotStyle -> {RGBColor[0.93, 0.27, 0.27], RGBColor[0.14, 0.8, 0.14], RGBColor[0.4, 0.6, 1]}]Styleは,PlotStyleの設定を上書きする場合がある:
BubbleChart3D[{{1, 2, 3, 4}, Style[{3, 2, 1, 3}, RGBColor[1, 0.75, 0]], {3, 1, 1, 2}, {1, 1, 1, 1}}, BubbleSizes -> {0.1, 0.5}, PlotStyle -> GrayLevel[0.62]]ColorFunctionとPlotStyleからのスタイルは組み合せることができる:
BubbleChart3D[RandomReal[1, {3, 4}], PlotStyle -> Opacity /@ {0.1, 0.4, 0.7}, ColorFunction -> (Blend[{RGBColor[0.4, 0.6, 1], RGBColor[0.93, 0.27, 0.27]}, #]&)]ColorFunctionは,PlotStyleの設定を上書きすることがある:
BubbleChart3D[RandomReal[1, {3, 4}], PlotStyle -> {RGBColor[0.93, 0.27, 0.27], RGBColor[0.14, 0.8, 0.14], RGBColor[0.4, 0.6, 1]}, ColorFunction -> "SolarColors"]ChartElementsはPlotStyleの設定を上書きすることがある:
BubbleChart3D[{{{1, 2, 3, 4}, {3, 2, 1, 3}, {3, 1, 1, 2}}}, BubbleSizes -> {0.2, 0.4}, ChartElements -> [image], PlotStyle -> GrayLevel[0.62]]PlotTheme (2)
Ticks (6)
BubbleChart3D[IconizedObject[«data»]]BubbleChart3D[IconizedObject[«data»], Ticks -> None]BubbleChart3D[IconizedObject[«data»], Ticks -> {{.5, 1, 1.5}, {.5, 1, 1.5}, {.5, 1, 1.5}}]BubbleChart3D[IconizedObject[«data»], Ticks -> {{{.5, a}, {1, b}, {1.5, c}}, {{.5, a}, {1, b}, {1.5, c}}, {{.5, a}, {1, b}, {1.5, c}}}]BubbleChart3D[IconizedObject[«data»], Ticks -> {{{.5, a, .22}, {1, b, .11}, {1.5, c, .2}}, {{.5, a, .22}, {1, b, .13}, {1.5, c, .08}}, {{.5, a, .1}, {1, b, .1}, {1.5, c, .1}}}]BubbleChart3D[IconizedObject[«data»], Ticks -> {{{.5, a, .22, Directive[RGBColor[0.4, 0.6, 1]]}, {1, b, .11, Directive[RGBColor[0.4, 0.6, 1], Thick]}, {1.5, c, .2, Directive[RGBColor[0.4, 0.6, 1], Thick, Dashed]}}, {{.5, a, .22, Directive[RGBColor[0.93, 0.27, 0.27]]}, {1, b, .13, Directive[RGBColor[0.93, 0.27, 0.27], Thick]}, {1.5, c, .08, Directive[RGBColor[0.93, 0.27, 0.27], Thick, Dashed]}}, {{.5, a, .1, Directive[RGBColor[0.14, 0.8, 0.14]]}, {1, b, .1, Directive[RGBColor[0.14, 0.8, 0.14], Thick]}, {1.5, c, .1, Directive[RGBColor[0.14, 0.8, 0.14], Thick]}}}]TicksStyle (2)
BubbleChart3D[IconizedObject[«data»], TicksStyle -> Directive[Bold, RGBColor[0.93, 0.27, 0.27]]]BubbleChart3D[IconizedObject[«data»], TicksStyle -> {Directive[RGBColor[0.14, 0.8, 0.14], Bold], Directive[Bold, RGBColor[0.93, 0.27, 0.27]], Directive[Bold, RGBColor[0.4, 0.6, 1]]}]アプリケーション (2)
バブルをクリックして国名,1人あたりの国内総生産,人口を聞く:
countries = CountryData["G15"];
properties = {"GDPPerCapita", "PovertyFraction", "MilitaryExpenditureFraction", "Population"};data = Table[With[{v = cp}, Button[v[[2 ;; 5]], Speak[StringJoin[ToString /@ {v[[1]], ", GDP per capita: $", Round[v[[2]]], ", Poverty Fraction: ", v[[3]], ", Military Expenditure Fraction: ", v[[4]], ", Population: ", Round[v[[5]]]}]]]], {cp, Table[Prepend[Table[CountryData[c, p], {p, properties}], c], {c, countries}]}];BubbleChart3D[data, PlotStyle -> ColorData["Rainbow"] /@ Range[0, 1, 1 / Length[data]]]国のリストから1人あたりの国内総生産,貧困度と軍事費を表示する:
countries = {"US", "France", "China", "India", "Iran", "Afghanistan", "Cameroon", "Brazil", "Russia", "Canada"};
properties = {"PovertyFraction", "GDPPerCapita", "MilitaryExpenditureFraction", "Population"};
data = Table[CountryData[c, p], {c, countries}, {p, properties}];labeler[v_, {r_, c_}, {rowLabels_, colLabels_}] := Placed[Grid[Prepend[Table[{properties[[i]], v[[i]]}, {i, Length[v]}], {Style[countries[[c]], Bold, 12], }], Alignment -> Left], Tooltip]BubbleChart3D[data, ViewPoint -> {2.19, -1.93, 1.72}, ImageSize -> 400, PlotLegends -> countries, AxesLabel -> properties[[1 ;; 3]], LabelingFunction -> labeler, PlotStyle -> {RGBColor[0.9215686274509803, 0.49411764705882355, 0.43137254901960786], RGBColor[1., 0.7215686274509804, 0.2196078431372549], RGBColor[0.9490196078431372, 0.8627450980392157, 0.43529411764705883], RGBColor[0.6705882352941176, 0.8784313725490196, 0.9372549019607843], RGBColor[0.3176470588235294, 0.6549019607843137, 0.7529411764705882], RGBColor[0.12941176470588237, 0.5176470588235295, 0.6313725490196078], RGBColor[0.09019607843137255, 0.33725490196078434, 0.49411764705882355], RGBColor[0.7058823529411765, 0.49411764705882355, 0.5450980392156862], RGBColor[0.5333333333333333, 0.23529411764705882, 0.3058823529411765], RGBColor[0.8941176470588236, 0.7098039215686275, 0.7490196078431373]}]特性と関係 (1)
BubbleChart3Dを使ってバブルチャートを3Dで描画する:
{BubbleChart[{{3, 4, 4}, {3, 6, 3}, {4, 3, 5}}], BubbleChart3D[{{3, 4, 1, 4}, {3, 6, 1, 3}, {4, 3, 1, 5}}]}おもしろい例題 (1)
ColorData[12] /@ Range[10]BubbleChart3D[RandomReal[10, {75, 4}], Axes -> None, Boxed -> False, FaceGrids -> None, PerformanceGoal -> "Speed", ChartElementFunction -> "FadingCube", PlotStyle -> <|"Elements" -> {RGBColor[0.6235294117647059, 0.1450980392156863, 0.12549019607843137], RGBColor[0.6588235294117647, 0.3058823529411765, 0.17254901960784313], RGBColor[0.24313725490196078, 0.11764705882352941, 0.058823529411764705], RGBColor[0.9450980392156862, 0.7529411764705882, 0.6352941176470588], RGBColor[0.8392156862745098, 0.4745098039215686, 0.21176470588235294], RGBColor[0.8274509803921568, 0.7254901960784313, 0.43529411764705883], RGBColor[0.44313725490196076, 0.4980392156862745, 0.5490196078431373], RGBColor[0.24705882352941178, 0.30980392156862746, 0.37254901960784315], RGBColor[0.16862745098039217, 0.23921568627450981, 0.3803921568627451], RGBColor[0.2980392156862745, 0.17647058823529413, 0.19607843137254902]}, "Base" -> EdgeForm[None]|>, BoxRatios -> {1.2, 1, 1}]関連するガイド
-
▪
- グラフ化と情報の可視化 ▪
- 日付と時刻の可視化 ▪
- 空間点集合
履歴
2008 で導入 (7.0) | 2010 で更新 (8.0) ▪ 2012 (9.0) ▪ 2014 (10.0) ▪ 2025 (14.2) ▪ 2025 (14.3) ▪ 2026 (15.0)
テキスト
Wolfram Research (2008), BubbleChart3D, Wolfram言語関数, https://reference.wolfram.com/language/ref/BubbleChart3D.html (2026年に更新).
CMS
Wolfram Language. 2008. "BubbleChart3D." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2026. https://reference.wolfram.com/language/ref/BubbleChart3D.html.
APA
Wolfram Language. (2008). BubbleChart3D. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BubbleChart3D.html
BibTeX
@misc{reference.wolfram_2026_bubblechart3d, author="Wolfram Research", title="{BubbleChart3D}", year="2026", howpublished="\url{https://reference.wolfram.com/language/ref/BubbleChart3D.html}", note=[Accessed: 15-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_bubblechart3d, organization={Wolfram Research}, title={BubbleChart3D}, year={2026}, url={https://reference.wolfram.com/language/ref/BubbleChart3D.html}, note=[Accessed: 15-August-2026]}