Qurak

Add transparency to plots

工作流 10 步,在同一个会话中按顺序运行。每一步都在引擎上执行过,下面的输出就是它实际产生的。

第 1 步
eq = x ^ 2
输出
x^2
第 2 步
Plot[eq, {x, -2, 2}]
输出
-Graphics-
第 3 步
eq2 = -x ^ 2
输出
-x^2
第 4 步
eq = x ^ 4 + y ^ 4 - 5 x ^ 2 * y ^ 2
输出
x^4 - 5*x^2*y^2 + y^4
第 5 步
Plot3D[eq, {x, -3, 3}, {y, -3, 3}]
输出
-Graphics3D-
第 6 步
eq2 = -100 - x ^ 4 - y ^ 4 + 5 x ^ 2 * y ^ 2
输出
-100 - x^4 + 5*x^2*y^2 - y^4
第 7 步
Graphics[Disk[]]
输出
-Graphics-
第 8 步
Row[Table[
	Graphics[{Opacity[n], Disk[]}, ImageSize -> Scaled[.1]],
	{n, 0.1, 1, 0.3}]]
输出
-Graphics--Graphics--Graphics--Graphics-
第 9 步
Row[Table[
	Graphics[{Red, Opacity[n], Disk[]}, ImageSize -> Scaled[.1]],
	{n, 0.1, 1, 0.3}]]
输出
-Graphics--Graphics--Graphics--Graphics-
第 10 步
Manipulate[RegionPlot[
	{x - y ≥ t, x + y ≥ s}, {x, -3 Pi, 3 Pi}, {y, -3 Pi, 3 Pi},
	PlotPoints -> 30,
	PlotStyle -> {Directive[Red], Directive[Blue, Opacity[0.5]]}
	],
	Style["Solving the system of inequalities: x-y ≥ t and x +y ≥ s", Bold, 12],
	{{s, 0}, -20, 20}, {{t, 0}, -20, 20}
	]
输出
Manipulate[RegionPlot[{x - y >= t, x + y >= s}, {x, -3*Pi, 3*Pi}, {y, -3*Pi, 3*Pi}, PlotPoints -> 30, PlotStyle -> {Directive[Red], Directive[Blue, Opacity[0.5]]}], Solving the system of inequalities: x-y ≥ t and x +y ≥ s, {{s, 0}, -20, 20}, {{t, 0}, -20, 20}]

用到的函数

相关操作示例

全部操作示例 · 函数参考 · 从 MCP 客户端使用