Re: Problem in using preassigned variable in manipulate
- To: mathgroup at smc.vnet.net
- Subject: [mg126374] Re: Problem in using preassigned variable in manipulate
- From: Christoph Lhotka <christoph.lhotka at fundp.ac.be>
- Date: Fri, 4 May 2012 06:27:39 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201205040224.WAA08605@smc.vnet.net>
hello, your cdf file does not store the definition for x in your case. Use therefore g = Manipulate[ Plot[Sin[i t], {t, 0, 10}, ImageSize -> Scaled[x]], {i, 1, 5}, Initialization :> {x := .5}] or use x:=.5 g=Manipulate[Sin[i t], {t, 0, 10}, ImageSize -> Scaled[x]], {i, 1, 5}, SaveDefintions->True]. to safe any definitions associated to expr. Best, Christoph # On 05/04/2012 04:24 AM, Pooja Tewari wrote: > Hi, > > I am new to Mathematica and I have been stuck with this seemingly small issue for some time now - > > x:=.5; > > g = Manipulate[ > Plot[Sin[i t], {t, 0, 10}, > ImageSize -> Scaled[x]], {i, 1, 5}] > > I want to assign the variable x to .5 and then use it in Manipulate function, which plot a graph of sin[i t] and imagesize should be scaled to x( which is already assigned). But when I am deploying this in cdf, I am having this error > > "The specified setting for the option GraphicsBoxOptions, ImageSize cannot be used." >
- References:
- Problem in using preassigned variable in manipulate
- From: Pooja Tewari <infratab.poojat@gmail.com>
- Problem in using preassigned variable in manipulate