Re: Problem in using preassigned variable in manipulate
- To: mathgroup at smc.vnet.net
- Subject: [mg126379] Re: Problem in using preassigned variable in manipulate
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Sat, 5 May 2012 04:13:06 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201205040224.WAA08605@smc.vnet.net> <4FA3DD0B.4010902@math.umass.edu>
- Reply-to: murray at math.umass.edu
I missed the "deploying this in cdf" sentence, so my original response
is irrelevant.
On 5/4/12 9:43 AM, Murray Eisenberg wrote:
> Your code works perfectly as is for me (Mathematica 8.0.4).
>
> You can even make a function with x as argument:
>
> f[x_] := Manipulate[
> Plot[Sin[i t], {t, 0, 10},
> ImageSize -> Scaled[x]],
> {i, 1, 5}]
>
> On 5/3/12 10:24 PM, 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."
>>
>
--
Murray Eisenberg murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
- References:
- Problem in using preassigned variable in manipulate
- From: Pooja Tewari <infratab.poojat@gmail.com>
- Problem in using preassigned variable in manipulate