Qurak

Add transparency to plots

Workflow 10 Schritte, der Reihe nach in einer Sitzung ausgeführt. Jeder Schritt wurde gegen die Engine ausgeführt, und die Ausgabe unten ist, was er erzeugte.

Schritt 1
eq = x ^ 2
Ausgabe
x^2
Schritt 2
Plot[eq, {x, -2, 2}]
Ausgabe
-Graphics-
Schritt 3
eq2 = -x ^ 2
Ausgabe
-x^2
Schritt 4
eq = x ^ 4 + y ^ 4 - 5 x ^ 2 * y ^ 2
Ausgabe
x^4 - 5*x^2*y^2 + y^4
Schritt 5
Plot3D[eq, {x, -3, 3}, {y, -3, 3}]
Ausgabe
-Graphics3D-
Schritt 6
eq2 = -100 - x ^ 4 - y ^ 4 + 5 x ^ 2 * y ^ 2
Ausgabe
-100 - x^4 + 5*x^2*y^2 - y^4
Schritt 7
Graphics[Disk[]]
Ausgabe
-Graphics-
Schritt 8
Row[Table[
	Graphics[{Opacity[n], Disk[]}, ImageSize -> Scaled[.1]],
	{n, 0.1, 1, 0.3}]]
Ausgabe
-Graphics--Graphics--Graphics--Graphics-
Schritt 9
Row[Table[
	Graphics[{Red, Opacity[n], Disk[]}, ImageSize -> Scaled[.1]],
	{n, 0.1, 1, 0.3}]]
Ausgabe
-Graphics--Graphics--Graphics--Graphics-
Schritt 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}
	]
Ausgabe
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}]

Verwendete Funktionen

Verwandte Rezepte

Alle Rezepte · Funktionsreferenz · Dies aus einem MCP-Client verwenden