Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Adding to a plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126180] Re: Adding to a plot
  • From: Alexei Boulbitch <Alexei.Boulbitch at iee.lu>
  • Date: Mon, 23 Apr 2012 05:42:31 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Hi,

If I plot something using ParametricPlot and later want to add something to the same plot, how is that done?

Many thanks in advance,

Sam


Hi,
It depends upon the thing you want to add and cannot be told apriori. However, if it is simply a graphics object you can do it by using Show.
For example:
This is a parametric plot from the Mathematica Help:
pp=ParametricPlot[{Sin[u],Sin[2u]},{u,0,2Pi}];

This is an arrow to be added to the parametric plot:
arr=Graphics[{Red, Arrow[{Scaled[{0.5,0.5}],Scaled[{0.9,0.9}]}]}];

And here they are added together.
Show[{pp,arr}]

Hope it helps. Alexei


Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG

Office phone :  +352-2454-2566
Office fax:       +352-2454-3566
mobile phone:  +49 151 52 40 66 44

e-mail: alexei.boulbitch at iee.lu






  • Prev by Date: Re: How to repackage arguments?
  • Next by Date: Re: convolution involving UnitStep
  • Previous by thread: Re: Adding to a plot
  • Next by thread: Re: Adding to a plot