Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11174

Graph background & Manipulate

From "Mat' G\." <ellocomateo@free.fr>
Newsgroups comp.soft-sys.math.mathematica
Subject Graph background & Manipulate
Date 2012-08-02 08:55 +0000
Message-ID <jvdfa8$c52$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Graph background & Manipulate "Mat' G\." <ellocomateo@free.fr> - 2012-08-02 08:55 +0000

csiph-web