Qurak

Add transparency to plots

Flux de travail 10 étapes, exécutées dans l'ordre dans une même session. Chaque étape a été exécutée sur le moteur et la sortie ci-dessous est ce qu'elle a produit.

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

Fonctions utilisées

Recettes connexes

Toutes les recettes · Référence des fonctions · Utiliser ceci depuis un client MCP