Graph background & Manipulate
- To: mathgroup at smc.vnet.net
- Subject: [mg127533] Graph background & Manipulate
- From: "Mat' G\." <ellocomateo at free.fr>
- Date: Thu, 2 Aug 2012 04:51:22 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
Hello,
I would like to output several graphs in a Grid based on a single
Manipulate. Each cell in the Grid shows a graph that is based on a Show
structure. All graphs have the same "background" that is expressed
similar to this in Show, with all VarX variable depending on Manipulate:
Show[
Quiet@DensityPlot[HERE different functions, depending on the cell]
,Quiet@StreamPlot[
{ExTotal[x, y, Var1,Var2], EyTotal[x, y, Var1,Var2]}
, {x, -Var3, Var3}, {y, -Var3, Var3}
]
, Graphics[{
Rectangle[{-Var1, 0}, {Var1,30}]
Rectangle[{-Var2, 0}, {Var2,30}]
}]
]
Since I have many graphs, can I somehow gather the "background" part in
a variable?:
BackgroundGraph={
,Quiet@StreamPlot[
{ExTotal[x, y, Var1,Var2], EyTotal[x, y, Var1,Var2]}
, {x, -Var3, Var3}, {y, -Var3, Var3}
]
, Graphics[{
Rectangle[{-Var1, 0}, {Var1,30}]
Rectangle[{-Var2, 0}, {Var2,30}]
}]
}
I would like to have something similar to:
Show[
Quiet@DensityPlot[HERE different functions, depending on the cell]
,BackgroundGraph
]
where BackgroundGraph needs be edited only once for all graphs, but
still updates depending on Manipulate?
I very often find myself willing to do that, but I am always blocked in
my understanding of Mathematica's syntax.
Thanks for helping!
Mat