Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15328 > unrolled thread
| Started by | Francisco Gutierrez <fgutiers2002@yahoo.com> |
|---|---|
| First post | 2013-08-20 11:36 +0000 |
| Last post | 2013-09-01 07:16 +0000 |
| Articles | 6 — 4 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
parametric plot and filling Francisco Gutierrez <fgutiers2002@yahoo.com> - 2013-08-20 11:36 +0000
Re: parametric plot and filling Roland Franzius <roland.franzius@uos.de> - 2013-08-22 04:34 +0000
Re: parametric plot and filling Roland Franzius <roland.franzius@uos.de> - 2013-08-22 04:44 +0000
Re: parametric plot and filling Helen Read <readhpr@gmail.com> - 2013-08-23 09:28 +0000
Re: parametric plot and filling Francisco Gutierrez <fgutiers2002@yahoo.com> - 2013-08-31 12:19 +0000
Re: parametric plot and filling Bob Hanlon <hanlonr357@gmail.com> - 2013-09-01 07:16 +0000
| From | Francisco Gutierrez <fgutiers2002@yahoo.com> |
|---|---|
| Date | 2013-08-20 11:36 +0000 |
| Subject | parametric plot and filling |
| Message-ID | <kuvkbl$mp9$1@smc.vnet.net> |
Dear group:
DoesParametricPlot admit the Filling option? Seems it not? How then to perform it?
Lokk at the following simple example:
ParametricPlot[{{2 t,-t^2},{6+ 2 t,-t^2}}, {t,-2,2},Axes->{True,False}, Ticks->None, PlotStyle->{{Thick,Cyan},{Thick,Green}}]
The if I introduce the Filling command inside PlotStyle nothing happens, and outside it produces an error. Any ideas?
francisco
[toc] | [next] | [standalone]
| From | Roland Franzius <roland.franzius@uos.de> |
|---|---|
| Date | 2013-08-22 04:34 +0000 |
| Message-ID | <kv44co$4hn$1@smc.vnet.net> |
| In reply to | #15328 |
Am 20.08.2013 13:36, schrieb Francisco Gutierrez:
> Dear group:
>
> DoesParametricPlot admit the Filling option? Seems it not? How then to perform it?
> Lokk at the following simple example:
>
> ParametricPlot[{{2 t,-t^2},{6+ 2 t,-t^2}}, {t,-2,2},Axes->{True,False}, Ticks->None, PlotStyle->{{Thick,Cyan},{Thick,Green}}]
>
>
>
> The if I introduce the Filling command inside PlotStyle nothing happens, and outside it produces an error. Any ideas?
> francisco
>
Produce lists of the parametric plots and use ListLinePlot which is the
most universal primitive with respect ot options
lists = Table[{{2 t, -t^2}, {6 + 2 t, -t^2}}, {t, -2, 2, 0.02}];
ListLinePlot[Transpose[lists], Filling -> Axis]
Transpose is needed to re-index the lists of pairs of points into two
lists of points.
--
Roland Franzius
[toc] | [prev] | [next] | [standalone]
| From | Roland Franzius <roland.franzius@uos.de> |
|---|---|
| Date | 2013-08-22 04:44 +0000 |
| Message-ID | <kv4509$4j0$1@smc.vnet.net> |
| In reply to | #15328 |
Am 20.08.2013 13:36, schrieb Francisco Gutierrez:
> Dear group:
>
> DoesParametricPlot admit the Filling option? Seems it not? How then to perform it?
> Lokk at the following simple example:
>
> ParametricPlot[{{2 t,-t^2},{6+ 2 t,-t^2}}, {t,-2,2},Axes->{True,False}, Ticks->None, PlotStyle->{{Thick,Cyan},{Thick,Green}}]
>
>
>
> The if I introduce the Filling command inside PlotStyle nothing happens, and outside it produces an error. Any ideas?
> francisco
>
Produce lists of the parametric plots and use ListLinePlot which is the
most universal primitive with respect ot options
lists = Table[{{2 t, -t^2}, {6 + 2 t, -t^2}}, {t, -2, 2, 0.02}];
ListLinePlot[Transpose[lists], Filling -> Axis]
Transpose is needed to re-index the lists of pairs of points into two
lists of points.
--
Roland Franzius
[toc] | [prev] | [next] | [standalone]
| From | Helen Read <readhpr@gmail.com> |
|---|---|
| Date | 2013-08-23 09:28 +0000 |
| Message-ID | <kv79vb$bu3$1@smc.vnet.net> |
| In reply to | #15328 |
Use a second parameter. For example,
ParametricPlot[{{2 t, -m t^2}, {6 + 2 t, -m t^2}}, {t, -2, 2}, {m, 0,
1}, Axes -> {True, False}, Ticks -> None, PlotStyle -> Green,
BoundaryStyle -> {Thick, Cyan}, Mesh -> False, Frame -> False]
ParametricPlot[{r Cos[t], r Sin[t]}, {t, 0, 2 \[Pi]}, {r, 3, 4},
Mesh -> False, PlotStyle -> Red, BoundaryStyle -> None,
Axes -> False, Frame -> False]
Helen Read
University of Vermont
On 8/20/2013 7:36 AM, Francisco Gutierrez wrote:
> Dear group:
>
> DoesParametricPlot admit the Filling option? Seems it not? How then to perform it?
> Lokk at the following simple example:
>
> ParametricPlot[{{2 t,-t^2},{6+ 2 t,-t^2}}, {t,-2,2},Axes->{True,False}, Ticks->None, PlotStyle->{{Thick,Cyan},{Thick,Green}}]
>
>
>
> The if I introduce the Filling command inside PlotStyle nothing happens, and outside it produces an error. Any ideas?
> francisco
>
[toc] | [prev] | [next] | [standalone]
| From | Francisco Gutierrez <fgutiers2002@yahoo.com> |
|---|---|
| Date | 2013-08-31 12:19 +0000 |
| Message-ID | <kvsmvk$h9t$1@smc.vnet.net> |
| In reply to | #15328 |
Many thanks to Helen Read, Craig Carter, Murray Eisenberg, Roland Franzius, Bob Hanlon, and other group members/gurus for their responses to my query. As always, a nice set of excellent solutions (for example Helen's), which corroborates
how good a resource this group is. By now I think no more answers will come in.
Indeed, as Murray Eisenberg notes, there are situations in which the filling option simply does not make sense. Even then, there are other situations where it does. Suppose you have the following curve:
ParametricPlot[{Cos[x],Sin[x^2]}, {x,0,Pi}]
One could want to highlight the regions in which the curve goes above the x axis. Filling would come in handy there.
Well, once again, thanks!
Francisco
[toc] | [prev] | [next] | [standalone]
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2013-09-01 07:16 +0000 |
| Message-ID | <kvupji$n9f$1@smc.vnet.net> |
| In reply to | #15328 |
The approach recommended by Roland Franzius works for your example:
ParametricPlot[{Cos[x], Sin[x^2]},
{x, 0, Pi}]
ListLinePlot[
Table[{Cos[x], Sin[x^2]},
{x, 0, Pi, Pi/64}],
AspectRatio -> 1,
Filling -> {1 -> {0, {White, LightBlue}}}]
Bob Hanlon
On Sat, Aug 31, 2013 at 8:15 AM, Francisco Gutierrez <fgutiers2002@yahoo.com
> wrote:
>
> Many thanks to Helen Read, Craig Carter, Murray Eisenberg, Roland
> Franzius, Bob Hanlon, and other group members/gurus for their responses to
> my query. As always, a nice set of excellent solutions (for example
> Helen's), which corroborates
> how good a resource this group is. By now I think no more answers will
> come in.
>
> Indeed, as Murray Eisenberg notes, there are situations in which the
> filling option simply does not make sense. Even then, there are other
> situations where it does. Suppose you have the following curve:
>
> ParametricPlot[{Cos[x],Sin[x^2]}, {x,0,Pi}]
>
>
> One could want to highlight the regions in which the curve goes above the
> x axis. Filling would come in handy there.
>
> Well, once again, thanks!
> Francisco
>
>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web