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


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

Manipulate

From Bernard Vuilleumier <bernard.vuilleumier@sunrise.ch>
Newsgroups comp.soft-sys.math.mathematica
Subject Manipulate
Date 2012-02-02 10:01 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jgdmul$qoe$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hello,

Is it possible to have, in this example, 3 menus with bouton1 
(item[[1]]), 4 with bouton 2 (item[[2]]) and 2 with bouton 3 
(item[[3]])?

data = {Table[RandomInteger[{10, 20}, 3], {3}],
   Table[RandomInteger[{10, 20}, 3], {4}],
   Table[RandomInteger[{10, 20}, 3], {2}]};
item = {{1 -> "menu1", 2 -> "menu2", 3 -> "menu3"}, {4 -> "menu4",
    5 -> "menu5", 6 -> "menu6", 7 -> "menu7"}, {8 -> "menu8", 9 -> 
"menu9"}};
Manipulate[BarChart3D[data[[j, k]]],
 {{j, 1, "Bouton"}, {1 -> "Bouton1", 2 -> "Bouton2", 3 -> "Bouton3"}}, 
{{k, 1,
    "Menu"}, item[[1]]}]

I tried with
data = {Table[RandomInteger[{10, 20}, 3], {3}],
   Table[RandomInteger[{10, 20}, 3], {4}],
   Table[RandomInteger[{10, 20}, 3], {2}]};
item = {{1 -> "menu1", 2 -> "menu2", 3 -> "menu3"}, {4 -> "menu4",
    5 -> "menu5", 6 -> "menu6", 7 -> "menu7"}, {8 -> "menu8", 9 -> 
"menu9"}};
Manipulate[BarChart3D[data[[j, k]]],
 {{j, 1, "Bouton"}, {1 -> "Bouton1", 2 -> "Bouton2", 3 -> "Bouton3"}}, 
{{k, 1,
    "Menu"}, item[[j]]}]

but this doesn't work.
Thank's for your attention

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


Thread

Manipulate Bernard Vuilleumier <bernard.vuilleumier@sunrise.ch> - 2012-02-02 10:01 +0000

csiph-web