例 4 ステップを1つのセッション内で順に実行します。各ステップはエンジンで実行済みで、以下の出力は実際に生成されたものです。
data = {0.3, 0.3, 1.2, 0.8, 3.1, 1, 4, 0.1};出力なし - このステップは次のステップの準備をします。
newdata = MapIndexed[If[# > Mean[data], Style[
Legended[#, Row[{"bar", First[#2]}]], ColorData[63, First[#2]]], #]&, data];出力なし - このステップは次のステップの準備をします。
styles = Sequence@@{ImageSize -> 400, ChartStyle -> Gray, GridLinesStyle -> Directive[AbsoluteThickness[3], LightGray]};出力なし - このステップは次のステップの準備をします。
BarChart[newdata, ChartElementFunction -> "FadingRectangle", GridLines -> {None, {Mean[data]}}, Evaluate@styles, ChartLegends -> SwatchLegend[None, LegendMarkerSize -> 20, LegendMarkers -> "FadingRectangle", LabelStyle -> {Gray, Bold, 18}, LegendLabel -> "above mean"]]-Graphics-