Qurak

Add transparency to plots

ワークフロー 10 ステップを1つのセッション内で順に実行します。各ステップはエンジンで実行済みで、以下の出力は実際に生成されたものです。

ステップ 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クライアントから使う