Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7028
| From | Barrie Stokes <Barrie.Stokes@newcastle.edu.au> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Ploting a transformation of a set |
| Date | 2011-12-08 10:35 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jbq3ts$iqa$1@smc.vnet.net> (permalink) |
| References | <4EDCB5F0.813B.006A.0@newcastle.edu.au> <jbkj0l$i30$1@smc.vnet.net> |
Hi Dan
This is very nice too.
I think stabilising the mapped plane with PlotRange helps:
With[ {n = 10, c1 = ColorData[ 1 ][ 1 ], c2 = ColorData[ 1 ][ 2 ]},
refGrid = Show[ {
ParametricPlot[ Table[ {2 t, 2 (k/n)}, {k, n} ], {t, 0, 1},
PlotStyle -> c1 ],
ParametricPlot[ Table[ {2 (k/n), 2 t}, {k, n} ], {t, 0, 1},
PlotStyle -> c2 ]
}, ImageSize -> 200 ];
Manipulate[
Module[ {map},
map = ({x, y} \[Function] {(x + a y)^b, (a x + y)^b});
Grid[ {{
refGrid,
Show[ {
ParametricPlot[ Table[ map @@ {2 t, 2 (k/n)}, {k, n} ], {t,
0, 1}, PlotStyle -> c1, PlotRange -> {{0, 2}, {0, 2}} ],
ParametricPlot[ Table[ map @@ {2 (k/n), 2 t}, {k, n} ], {t,
0, 1}, PlotStyle -> c2, PlotRange -> {{0, 2}, {0, 2}} ]
}, ImageSize -> 200 ]
}} ]
],
{{a, 0.5}, 0, 1, 0.05},
{{b, 0.5}, 0.1, 1, 0.05}
]
]
Cheers
Barrie
PS
I like your indenting for clarity. I purposely use "[space" and "space]" everywhere in code I paste into emails. Gradually my spellchecker will know every reserved word in Mathematica.
>>> On 07/12/2011 at 10:15 pm, in message <201112071115.GAA04280@smc.vnet.net>, Dan
<dflatin@rcn.com> wrote:
> Another approach would be to look at the transformation of the grid. I
> find this sort of visualization more informative for these sorts of
> mappings. For example:
>
> With[{n=10,c1=ColorData[1][1],c2=ColorData[1][2]},
> refGrid=Show[{
> ParametricPlot[Table[{2t,2(k/n)},{k,n}],{t,0,1},PlotStyle->c1],
> ParametricPlot[Table[{2(k/n),2t},{k,n}],{t,0,1},PlotStyle->c2]
> },ImageSize->200];
> Manipulate[
> Module[{map},
> map=({x,y}\[Function]{(x+a y)^b,(a x+y)^b});
> Grid[{{
> refGrid,
> Show[{
> ParametricPlot[Table[map@@{2t,2(k/n)},{k,n}],{t,
> 0,1},PlotStyle->c1],
> ParametricPlot[Table[map@@{2(k/n),2t},{k,n}],{t,
> 0,1},PlotStyle->c2]
> },ImageSize->200]
> }}]
> ],
> {{a,0.5},0,1,0.05},
> {{b,0.5},0.1,1,0.05}
> ]
> ]
>
> -- Dan
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Ploting a transformation of a set Barrie Stokes <Barrie.Stokes@newcastle.edu.au> - 2011-12-06 08:16 +0000 Re: Ploting a transformation of a set Dan <dflatin@rcn.com> - 2011-12-07 11:16 +0000 Re: Ploting a transformation of a set Dan <dflatin@rcn.com> - 2011-12-07 11:24 +0000 Re: Ploting a transformation of a set Barrie Stokes <Barrie.Stokes@newcastle.edu.au> - 2011-12-08 10:34 +0000 Re: Ploting a transformation of a set Barrie Stokes <Barrie.Stokes@newcastle.edu.au> - 2011-12-08 10:35 +0000 Re: Ploting a transformation of a set 真 童 <z.tong1017@gmail.com> - 2011-12-08 10:39 +0000
csiph-web