MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Manipulate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125026] Manipulate
  • From: Bernard Vuilleumier <bernard.vuilleumier at sunrise.ch>
  • Date: Sat, 18 Feb 2012 06:26:20 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Manipulate
Hello,
I have a list of menus named item :


item={{1->"menu1",2->"menu2",3->"menu3"},{4->"menu4",5->"menu5",6->"menu6",7->"menu7"},{8->"menu8",9->"menu9"}};

How can I associate part 1 of this list with Bouton1
item[[1]]
{1->menu1,2->menu2,3->menu3}

part 2 with Bouton2
item[[2]]
{4->menu4,5->menu5,6->menu6,7->menu7}

and part 3 with bouton3 in a Manipulate ?
item[[3]]
{8->menu8,9->menu9}


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 have tried :

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]]}]

Thank's for your attention.



  • Prev by Date: Re: Changing the argument
  • Next by Date: How best to implement a hash table in Mathematica
  • Previous by thread: Manipulate
  • Next by thread: Mathematical Statistics with Mathematica - special discounted student pricing