Ví dụ 2 bước, chạy theo thứ tự trong một phiên. Từng bước đều được thực thi trên bộ máy và đầu ra bên dưới là những gì nó tạo ra.
d1 = Table[PDF[NormalDistribution[0, 1], x], {x, -3, 3, 0.1}];
d2 = Table[PDF[NormalDistribution[0, 0.5], x], {x, -3, 3, 0.1}];
dm = Mean /@ Transpose[{d1, d2}];
styles = Sequence@@{PlotStyle -> {Directive[AbsoluteThickness[5], Opacity[0.5], ColorData[45][1]], Directive[AbsoluteThickness[7], ColorData[45][4]], Directive[AbsoluteThickness[5], Opacity[0.5], ColorData[45][10]]}, ImageSize -> 400, PlotRange -> All, AxesStyle -> Gray, Ticks -> None};Không có đầu ra - bước này chuẩn bị cho bước kế tiếp.
ListLinePlot[{d1, Legended[dm, "mean"], d2}, DataRange -> {-3, 3}, Evaluate@styles, Filling -> {1 -> {3}}, FillingStyle -> Opacity[0.1], PlotLegends -> LineLegend[None, LegendMarkerSize -> {40, 10}, LabelStyle -> {20, Bold, GrayLevel[0.3]}]]-Graphics-Tất cả công thức · Tài liệu tham chiếu hàm · Dùng cái này từ một client MCP