Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8017 > unrolled thread
| Started by | Robert Steinfelder <rsteinfe@techfak.uni-bielefeld.de> |
|---|---|
| First post | 2012-01-19 11:40 +0000 |
| Last post | 2012-01-20 06:59 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Vectorlength independet of axis-scale using VectorPlot? Robert Steinfelder <rsteinfe@techfak.uni-bielefeld.de> - 2012-01-19 11:40 +0000
Re: Vectorlength independet of axis-scale using VectorPlot? "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2012-01-20 06:59 +0000
| From | Robert Steinfelder <rsteinfe@techfak.uni-bielefeld.de> |
|---|---|
| Date | 2012-01-19 11:40 +0000 |
| Subject | Vectorlength independet of axis-scale using VectorPlot? |
| Message-ID | <jf8veo$5pb$1@smc.vnet.net> |
Hi,
given the following code:
\[Gamma] := 3
a := 0.3
\[Epsilon] := 0.1
graphs := Plot[{-v*(v - a)*(v - 1), v/\[Gamma]}, {v, -0.4, 1.5},
PlotRange -> {{-0.4, 1.3}, {-0.2, 0.3}},
PlotStyle -> {{Black, Thick}, {Black, Thick}}, AspectRatio -> 1,
AxesStyle -> Arrowheads[0.03] ]
vecs := VectorPlot[{-v*(v - a)*(v - 1) -
w, \[Epsilon]*(v - \[Gamma]*w)}, {v, -0.4, 1.2}, {w, -0.2, 0.3},
Axes -> True, VectorPoints -> 15,
VectorScale -> {0.03, Scaled[1], None}]
Show[graphs, vecs, AxesLabel -> {"v", "w"}, AspectRatio -> 1]
The vectors of this vectorfield have all the same (absolute) length, of
course. But
due to the axis-scale, vectors in vertical orientatian are plottet
longer than
the others. Is it possible to correct that, so that all the
vectors have the same (relative) length?
Regards,
Rob
[toc] | [next] | [standalone]
| From | "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> |
|---|---|
| Date | 2012-01-20 06:59 +0000 |
| Message-ID | <jfb3bu$hss$1@smc.vnet.net> |
| In reply to | #8017 |
On Thu, 19 Jan 2012 11:40:08 -0000, Robert Steinfelder
<rsteinfe@techfak.uni-bielefeld.de> wrote:
> Hi,
>
> given the following code:
>
> \[Gamma] := 3
> a := 0.3
> \[Epsilon] := 0.1
>
> graphs := Plot[{-v*(v - a)*(v - 1), v/\[Gamma]}, {v, -0.4, 1.5},
> PlotRange -> {{-0.4, 1.3}, {-0.2, 0.3}},
> PlotStyle -> {{Black, Thick}, {Black, Thick}}, AspectRatio -> 1,
> AxesStyle -> Arrowheads[0.03] ]
>
> vecs := VectorPlot[{-v*(v - a)*(v - 1) -
> w, \[Epsilon]*(v - \[Gamma]*w)}, {v, -0.4, 1.2}, {w, -0.2, 0.3},
> Axes -> True, VectorPoints -> 15,
> VectorScale -> {0.03, Scaled[1], None}]
>
> Show[graphs, vecs, AxesLabel -> {"v", "w"}, AspectRatio -> 1]
>
> The vectors of this vectorfield have all the same (absolute) length, of
> course. But
> due to the axis-scale, vectors in vertical orientatian are plottet
> longer than
> the others. Is it possible to correct that, so that all the
> vectors have the same (relative) length?
>
> Regards,
> Rob
>
The way that seems to make most sense to me is to set AspectRatio ->
Automatic. Of course, this means you end up with a plot having an unusual
aspect ratio, but if you want the vectors to be of the same relative size
yet still quantitatively meaningful I'm not sure that there's a better way
to accomplish this.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web